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
sql -rows to columns
How do I create an oval rectangular box with two colors as borders as shown in the attachment.
How to add padding to article images but not module images
VLSM
reading xml from a string instead of xml file
<? not working but <?php is
How to make a local profile roaming even though option is greyed out
Outlook 2007 Auto-Complete (.nk2)
PHP/MySQL hyperlink to view specific record (on new page) from table of records from database
setting up port monitoring on a Dell PowerConnect switch