SELECT Name, Breed, Age, Gender From Dog Where Age 1: 1 Daisy Poodle 2 F 2 Jack Labrador 5 M 3 Max Beagle 1 M
SELECT Name, Breed, Age, Gender From Dog Where Age 1: 1 Daisy Poodle 2 F 2 Jack Labrador 5 M 3 Max Beagle 1 M
1 Daisy Poodle 2 F
2 Jack Labrador 5 M
3 Max Beagle 1 M
2. Write a query that returns all the male dogs, showing only the Name and Breed fields. (3)
3. Write a query that returns all Labradors displayed in ascending order by Name. Show all fields. (4)
6. Write a query that returns all cities with a population greater than 600,000, displayed in ascending
order by Name. Show all fields. (4)
7. Shown below is the design for a table called DVD. Write a query that returns all DVDs with a stock level
of 0. Show all fields. (3)D
DVD (DVD_ID, Title, Rating, Genre, Stock_Level)
8. Write a query that returns all DVDs in the family genre, with a U rating. Show all fields. (3)
9. Write a query that returns all DVDs in the action or horror genres. Show all fields. (3)
10. Write a query that returns all DVDs with a title that starts with “The”. Show all fields. (3)
11. Write a query that returns all DVDs in the horror genre with a stock level of 50 or above.
Only the Title and Stock_Level fields should be shown. (3)