Quiz Space

Database Management Systems · Quiz 1 · 16 Jul 2023 · May 2023 term

Question 9: Consider the relation G20(country_name, foreign_minister_…

Question 9

+4 marksOne or more correct options

Consider the relation G20(country_name, foreign_minister_name, events, date, venue)
Questions:

  1. Find the name of foreign ministers whose names start with 'j' and have at least 5 characters.
  2. Find out the number of events taking place in venue 'GIFT City'.
  3. Find out the venue name and number of events taking place in each venue

SQL queries:

sql
a. Select foreign_minister_name from G20
where foreign_minister_name like 'j____'
b. Select foreign_minister_name from G20
where foreign_minister_name like 'j____%'
c. Select count(events) from G20 where venue = 'GIFT City'
d. Select count(events) from G20 where venue = 'GIFT City'
Group By venue
e. Select venue, count(events) from G20
Group By venue
f. Select venue, count(events) from G20

Match the correct SQL queries with the corresponding Questions.

Select all that apply.

  1. A

    1-a, 2-c, 3-f

  2. B

    1-b, 2-c, 3-e

  3. C

    1-a, 2-d, 3-f

  4. D

    1-b, 2-d, 3-e

Show answer

Correct answers

  • B

    1-b, 2-c, 3-e

  • D

    1-b, 2-d, 3-e

Question 9 of 17 in the IIT Madras BS Database Management Systems (DBMS) Quiz 1 paper sat on 16 Jul 2023, in the May 2023 term (IIT M FOUNDATION AN2 EXAM QPF2 16 JULY 2023). It carries 4 marks.

More questions from this paper

  1. Q1The lowest level of data abstraction is
  2. Q2Suppose a company wants to determine whether the ’price’ of the commodity will be an attribute in the shopping database…
  3. Q3Consider the following scenario:\ The Reserve Bank of India (RBI) has issued guidelines declaring that the Rs. 2000 not…
  4. Q4Consider the schema given below : Emp (<u>eid</u>, ename, age, salary)\ Works (<u>eid</u>, did, pct_time)\ Dept (<u>did…
  5. Q5An instance of the relation students is given below. | sid | name | age | gpa | |---|---|---|---| | 53831 | Madayan | 1…
  6. Q6Consider two relations R and S as shown below. | A | B | C | |---|---|---| | 1 | 2 | 3 | | 2 | 4 | 6 | | 3 | 7 | 3 | | …
  7. Q7Figure question
  8. Q8Figure question
  9. Q10Figure question
  10. Q11Figure question
  11. Q12Consider the student relation given below. Select the correct query/queries to obtain the last name of students whose a…
  12. Q13Consider the two relations R and S. | A | B | C | |---|---|---| | 0 | 9 | 0 | | 2 | 2 | 2 | | 1 | 1 | 1 | | A | B | C |…
  13. Q14Consider the relation student shown in Table 3 | Roll_no | Name | marks | |---|---|---| | 1 | Ram | 50 | | 2 | Rakesh |…
  14. Q15Consider the following table which has four attributes: A, B, C, and D where A is the primary key and C is the foreign …
  15. Q16Figure question
  16. Q17Figure question