Hi guys,
I have a query that requires distinct records returned. These records need to be ordered by how close their postcode is to a fixed value, hence:
(3000 is the fixed value - Aussie postcodes are generally 4 digits)
I continue to get the following error:
ORDER BY clause (ABS(3000-g.PostalCode)) conflicts with DISTINCT.
Is there a way around this?
Cheers
Matt
I have a query that requires distinct records returned. These records need to be ordered by how close their postcode is to a fixed value, hence:
Code:
SELECT DISTINCT.....ORDER BY (ABS(3000-g.PostalCode))
(3000 is the fixed value - Aussie postcodes are generally 4 digits)
I continue to get the following error:
ORDER BY clause (ABS(3000-g.PostalCode)) conflicts with DISTINCT.
Is there a way around this?
Cheers
Matt