Instruction
Good job! Now lets go on to the following exercise in joining tables.
Exercise
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.



