Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Show all Except specific

$
0
0
i want to select all those record except those record who have birthdate less then 4/13/1992 and relation= son
i tried this
SELECT * FROM Dependents WHERE code = 2
AND NOT CONTAINS
(SELECT *
FROM Dependents
WHERE BirthDate < '4/13/1992' AND relation= 'son')
but not working


plz help
thanks

Viewing all articles
Browse latest Browse all 13329

Trending Articles