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 Server 2008 - SEARCH for a Database Table FIELD>..???
Not all codes paths return a value
Exchange 2007 - Do I need to get an external certificate SSL or can I live without it?
Difference between 3d modelling and 3d at cinemas
Problem with Declaring a Table Variable within a Table Function
Access 2007 --- Run-time 2455: You entered an expression that has an invalid reference to the property LinkChildFields.
Access 2007 documenter
Replicating Windows Server 2003 AD
create PIF on the fly - ie no GUI
Windows 7 root directory permissions