You are asking us to do your assignment for you. That is not what we are here for. The assignment is intended to test
your understanding of how to write queries in SQL, not
ours. Nor would giving you the
exact SQL as you request be doing you any favours, as merely copying what we tell you would not further your understanding of the logical basis behind writing queries.
Nevertheless here are a few clues to get you started:
1. You will need a HAVING clause in the query to restrict the result table, and the HAVING clause will make use of the COUNT aggregation operator.
2. You will need to restrict the query by means of a subquery which returns the date of birth of the youngest patient. Which aggregation operator do you think would be used in the subquery to return the youngest patient's date of birth?
3. Again you will need a subquery to restrict the query's result table. Which aggregation operator do you think would be used in the subquery in this case? That should be easy to decide.
Ken Sheridan, Stafford, England