Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Rick Ward — — source: Informix-list mailing list archive (1991-1998)
Does anyone out there know which is the most efficient:
SELECT account_number
FROM account_table
GROUP BY account_number;
or
SELECT DISTINCT(account_number)
FROM account_table;
I wonder if anyone has benchmarked it and found one quicker than the
other. I would also be interested to know if the engine does anything
different for DISTINCT or GROUP BY.
Cheers,
--
Rick Ward
Senior DBA
Great Universal Stores Home Shopping
MANCHESTER, UK
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.