The following query returns 4 rows of data. I would like to write a query that will count those rows. ie if 4 rows are returned I want to simply have a single row that says 4. Would this require a view? Thanks for your help in advance!
Code:
SELECT recipeID, count(ingredientID) AS N
FROM recipeIngredients
WHERE (ingredientID='ing011' OR ingredientID='ing015' OR ingredientID='ing032')
GROUP BY recipeID;