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
load a form base on a selectipon from a dropdown list
Excel - Trying to move the contents of 2 columns into 1 cell with some formatting.
Excel VBA - append ID for each row to results
Batch File Script Issue
Datagrid dummy column
Need help inserting a pdf into the body of a email in outlook 2003
How do I add var to a function
Vlookup (ish) on a range.
Would you support the Japanese putting up a memorial at Pearl Harbor?
SCCM mandatory assignment