Hi Everyone, this might seem like a trivial question, but I have a query called QRY_A which returns about 5000 rows with fields a, b, c, x, y and z. If I want to get just the unique rows from the results, would it be more efficient for me to use:
SELECT DISTINCT a, b, c, x, y, z
FROM QRY_A
or
SELECT a, b, c, x, y, z
FROM QRY_A
GROUP BY a, b, c, x, y, z
Also could I use SELECT DISTINCTROW and would that be more efficient? Is there any other way of getting the unique records other than the ways I've asked about?
Thanks for taking the time to read my question and for your responses.
SELECT DISTINCT a, b, c, x, y, z
FROM QRY_A
or
SELECT a, b, c, x, y, z
FROM QRY_A
GROUP BY a, b, c, x, y, z
Also could I use SELECT DISTINCTROW and would that be more efficient? Is there any other way of getting the unique records other than the ways I've asked about?
Thanks for taking the time to read my question and for your responses.
