Question 9
Consider the relation G20(country_name, foreign_minister_name, events, date, venue)
Questions:
- Find the name of foreign ministers whose names start with 'j' and have at least 5 characters.
- Find out the number of events taking place in venue 'GIFT City'.
- Find out the venue name and number of events taking place in each venue
SQL queries:
a. Select foreign_minister_name from G20where foreign_minister_name like 'j____'
b. Select foreign_minister_name from G20where 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 G20Match the correct SQL queries with the corresponding Questions.
1-a, 2-c, 3-f
1-b, 2-c, 3-e
1-a, 2-d, 3-f
1-b, 2-d, 3-e