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
Need VB code to send out a Lotus Notes e-mail in monospaced font, such as COURIER NEW, not COURIER
SSIS Package: Populating global variables from script task
How to add Ajax Extensions 1.0 library to ASP.NET 2.0?
Contacts for two users in same display
SendKeys in mex file
Creating a printer with IP port automatically
Group Policy even ID 1030 and 1058
Pay between 2 dates
How do I summarise totals per category?
Counting multiple fileds in a Report