Save up to $499! Grab all Python courses for $49 or all online courses we’ve ever launched for only $169. Only Feb 11-16. Happy Valentine's!
10. Exercise 6


Good job! Now lets go on to the following exercise in joining tables.


Each recipe contains a different number of ingredients. Find the number of ingredients in each recipe. Select only those recipes which have fewer than 5 ingredients. Display the recipe name and number of ingredients (name the column number_of_ingredients).

Stuck? Here's a hint!

To count ingredients use COUNT aggregate function. For filtering aggregate value you need HAVING clause. If you would like to remember issue about HAVING clause look at SQL Basics course. Part 4: Aggregation and grouping.