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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do a validate using group by

Status
Not open for further replies.

Tison

Programmer
May 12, 1999
216
0
0
CH
I have a large table as follows
Rec_Type Rec_Month Rec_Year Stuff
A Oct 2004 sdsddsxfdfsdf
A Nov 2004 tyytrtrt
B Oct 2004 rgdrghgdfdf
C Oct 2004 jtyjtjtrjtyjtyjty
C Nov 2004 ererggdfg

I want to select where there is no record for a specific month (eg B has no Nov record)

My problem is that I get all the non Nov records and I only want to get a result that says
"B has no Nov record for 2004
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top