let's say i have table with this structure:
id model color
------ -------- ----------
1 Ford yellow
2 Ford green
3 Ford red
4 Ford yellow
5 Subaru yellow
6 Subaru red
I need to make a query, which returns me every car in list, except for yellow ford's. Can somebody help?
If you want to deselect some rows dynamically, you may use it:
NOTE: Here, id is a column_name, which both tables have in common.
Good luck. :)
Hope this will help you.
Use Color<> "yellow" and model <> "Ford" as your where clause
In addition to Foo Bah's answer,
if you have null column values like that;
you need to use ISNULL() function to bring null column values