October 2, 2008 at 8:35 am
Say you have a table like this:
FirstName LastName Age Country
Jimmy Jones 21 UK
Sally Smith 23 UK
Jimmy Woods 24 UK
Freddy Woods 24 UK
I'd like a query that returns all the records except the where the FirstName = "Jimmy" and the LastName = "Woods". That is, only when the FirstName is Jimmy AND the last name is Woods. Hence, the query would return 3 rows like this:
Jimmy Jones 21 UK
Sally Smith 23 UK
Freddy Woods 24 UK
Thanks
October 2, 2008 at 8:43 am
October 2, 2008 at 8:43 am
select * from Table where not (FirstName = 'Jimmy' and LastName = 'Woods')
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
October 2, 2008 at 8:47 am
Thanks Ryan
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply