I'm trying to print selected data from one of my tables in my database. I can successfully do this but I then have to print this grouped by age and in descending order. But I have no idea how to do this with only the date of birth. Any help is appreciated and my SQL is displayed below.
SELECT pet_id, Name, Type, Breed, Born
FROM pet
WHERE Born
BETWEEN '1999' AND '2001'
GROUP BY
Please feel free to ask questions. I haven't tried anything as I don't know where to start unfortunately.