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

Multiple Distinct

Status
Not open for further replies.

Aspears

Programmer
Oct 26, 2006
1
US
I have a table that looks like the following:

Machine Date

N202019 9/16/2006
N202019 9/14/2006
N202019 9/16/2006
N202019 9/16/2006
N202019 9/14/2006

I only want to get the rows that have a Distinct Machine and Distinct Date. Should only show 2 rows in this example.

Thanks for your help
 
The following will give you just two rows from your values:
[tt]select distinct
machine, date
from {table name}[/tt]

HTH,
Larry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top