In Access 2003, I'm getting a "Join expression not supported" exception for this:
SELECT ID FROM Recipes INNER JOIN
(SELECT RecID, COUNT(RecID) AS NumIngredients
FROM Ingredients GROUP BY RecID)
ON RecID = ID
I have two tables, Recipes and Ingredients. Recipes.ID corresponds to foreign key Ingredients.RecID. I want to get the number of rows in Ingredients that correspond to each row in Recipes. Suggestions?