S
Stef
DISTINCT vs GROUPBY ?
Hello all,
I'm trying to figure out if there is any difference of performance using
either
GROUPBY or DISTINCT in the following scenario.
I have a table named [Orders] that contains many fields, among them two
called [Supplier_ID] and [InvoiceNumber]. The combo of the 2 is not
unique and may repeat over several item records.
I'm trying to generate a unique list of all [Supplier_ID][InvoiceNumber]
Is it faster/better to use GROUPBY or DISTINCT ?
many thx
Hello all,
I'm trying to figure out if there is any difference of performance using
either
GROUPBY or DISTINCT in the following scenario.
I have a table named [Orders] that contains many fields, among them two
called [Supplier_ID] and [InvoiceNumber]. The combo of the 2 is not
unique and may repeat over several item records.
I'm trying to generate a unique list of all [Supplier_ID][InvoiceNumber]
Is it faster/better to use GROUPBY or DISTINCT ?
many thx