MySQL Forums
Forum List  »  Microsoft Access

Re: distinct
Posted by: Luana Carter
Date: November 09, 2005 07:58PM

mared82 wrote:
> I need to use Distinct to return unique records by
> order number but I also need to return the rest of
> fields that are not part of the Distinct. For
> example:
>
> SELECT Num, Type, Customer FROM Order_Table
>
> Num Type Customer
> ------ ------ ------------
> 1 YY 1001
> 1 AA 1001
> 2 SD 2001
> 3 CC 5000
> 3 BB 5000
>
>
> I would like to use Select Distinct by number but
> return more than just the number field. Type and
> Customer also need to be returned like below
> example:
>
> Num Type Customer
> ------ ------ ------------
> 1 YY 1001
> 2 SD 2001
> 3 CC 5000
>
> Is there a way to solve this? Thank you in
> advance!!

Options: ReplyQuote


Subject
Views
Written By
Posted
8517
October 12, 2004 09:56AM
3269
October 12, 2004 01:25PM
Re: distinct
2653
November 09, 2005 07:58PM
2342
March 31, 2006 08:41AM
2365
March 31, 2006 02:45PM
2444
April 03, 2006 07:28AM
2272
April 03, 2006 07:51AM
2327
April 03, 2006 11:58AM
2161
April 05, 2006 04:21AM
2204
April 05, 2006 11:57AM
2204
April 05, 2006 04:53PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.