sql homework - minor change to question 18