Microsoft
Software
Hardware
Network
Question : SQL Query the excludes criteria
I can't seem to get the right results from my query.
I want the name of all recipes that do not use salt as an ingredient. I made up this query:
SELECT Recipes.RecipeName
FROM Recipes INNER JOIN Ingredients ON Recipes.RecipeId = Ingredients.RecipeID
WHERE Ingredient Not In ('salt')
GROUP BY Recipes.RecipeName;
But it still returns the recipe names that have have salt as an ingredient. Can't figure what's up. I'm using SQL Enterprise 2000.
Thank-you for all of your help,
Answer : SQL Query the excludes criteria
learn html and use notepad
or Notepad++, ConTEXT, free wanderful applications for any kind of editing purposes...
Random Solutions
while with union
asp.net Can I put more that one mssql table 'field' in one GridView Column?
Ethernet Tap
Summed Pivot table
How to provide an additional/extra dll file when deployin a feature in sharepoint?
exchange 2003 forward mail to Gmail
Adobe Flex: Browse For XML File(FileReference), Modify It, then upload it to server?
A comment triggers image display in IE6
Combo box alert code not working
How can I make this function to work with null values? In VBA and MS Access