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

using the values held in columns

Status
Not open for further replies.

Vann

IS-IT--Management
Nov 6, 2003
1
US
hello,
i'm writing a query that will omit all records which are up to date. each record has recordnumber as its key, but because the dates are not unique, it dislays records which are not up to date as well.
how can i omit all records with the same record number?
 
Yes, it's a bit difficult figuring out exactly what you want but if your last sentence says it all, the following would work I think.

select *
From Table1
Where record_num in
(Select record_num
From Table1
Group by record_num
having count(*) < 2 )
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top