Hi,
Im new at SQL, can anyone help with the following questions?
Finsbury Zoo keeps data about the care of theirs animals in a relational database with the following schema:
Animal (ID {pk}, Name, Species, Age, Sex, Weight, F-ID, M-ID)
Keeper (Staff-id {pk}, Keeper-Name, Specialisation)
Care-Role (ID {pk}, Staff-id {pk}, Role)
Primary key attributes are indicated with {pk}.
Notes – All attributes are ‘Char’, except for Age & Weight that are numeric. F-ID is the ID of the animal’s father and M-ID is the ID of the animal’s mother.
Specify the following queries in SQL:
i) List the names and IDs of all Lions more than 5 years old.
ii) List the names of all Keepers whose roles include ‘feeding’ Giraffes.
iii) What is the average weight of the adolescent female elephants. N.b. An adolescent elephant is between the ages of 6 and 10 years inclusive.
Kind Regards
J.Cowing