Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Query Fails to return correct result

Status
Not open for further replies.

JimReiley

MIS
Dec 10, 2004
58
US
I'm trying to see if any record in AdHeader DOES NOT have a record in AdTextNew with the following sql statement.

SELECT * FROM AdHeader
where not exists
(select adnumber, entryyear from adtextnew)

It doesn't return any records from adheader which it should.

Any idea why it doesn't?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top