Re: Simple SQL Distinct...!?
- From: markc600@xxxxxxxxxxx
- Date: 27 Feb 2006 06:44:03 -0800
For the non-unique addresses, you will have a choice
of DeliveryIDs, which one do you want?
If you want just one of them, you can do this
SELECT MAX(DeliveryID), Address, Organisation, Organisation, Town,
County, PostCode
FROM SOL_Delivery
WHERE CustomerID = 15
GROUP BY Address, Organisation, Organisation, Town,
County, PostCode
.
- Follow-Ups:
- Re: Simple SQL Distinct...!?
- From: @sh
- Re: Simple SQL Distinct...!?
- References:
- Simple SQL Distinct...!?
- From: @sh
- Simple SQL Distinct...!?
- Prev by Date: Re: Simple SQL Distinct...!?
- Next by Date: Re: Simple SQL Distinct...!?
- Previous by thread: Re: Simple SQL Distinct...!?
- Next by thread: Re: Simple SQL Distinct...!?
- Index(es):