|
Actually no it won't.
Select distinct fld1, fl2
from file
would give one row in the results set for every combination of
fld1, fld2
Select fld1, fl2
from file
group by fld1, fld2
would give you as many rows as the original table, with
duplicates for the rows with the same fld1, fld2.
In order for a solution using GROUP BY to work, you also need an
aggregate function of some sort...
Select fld1, fl2, count(*) as theCount
from file
group by fld1, fld2
On Mon, Jul 26, 2010 at 2:33 PM, Schutte, Michael Dwrote:
One suggestion...
Do a select group by query versus a select distinct.
Select fld1, fld2
From file
Group by fld1, fld2
Would give the same requests as
Select distinct fld1, fld2
Just try to see if VE gives a different answer.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.