|
-
May 26th, 2005, 02:15 PM
#1
Thread Starter
New Member
Distinct rows but all columns?
Is there a way to make a SQL statement that will only return distinct rows but ALL columns?
I have a table somehow like this:
ORDER CUSTOMER ORDER DATE
1 1010 05/04/2005
1 1010 05/04/2005
2 1011 05/09/2005
3 1010 05/10/2005
I want to filter maybe by order number and put the results in a listview control like this:
ORDER CUSTOMER ORDER DATE
1 1010 05/04/2005
2 1011 05/09/2005
3 1010 05/10/2005
I guess I'm thinking of a query like:
"SELECT ALL customer, orderdate DISTINCT order FROM table..." but this of course is wrong. Any help will be appreciated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|