T
TeeSee
Hypothetically my data could contain as follows:
Group 1 and SubGroup 1
Group 1 and SubGroup 2
I would like to have this query produce a unique [Discount] for each
of these combinations or pairings. The following is the standard SQL
and I don't know how and where to introduce the DISTINCT part. Could
someone please enlighten me. Thanks.
SELECT tblMaterialMaster.SISItemCode, tblMaterialMaster.Group,
tblMaterialMaster.SubGroup, tblMaterialMaster.ListPrice,
tblMaterialMaster.Discount
FROM tblMaterialMaster
WHERE (((tblMaterialMaster.ListPrice)>0));
Group 1 and SubGroup 1
Group 1 and SubGroup 2
I would like to have this query produce a unique [Discount] for each
of these combinations or pairings. The following is the standard SQL
and I don't know how and where to introduce the DISTINCT part. Could
someone please enlighten me. Thanks.
SELECT tblMaterialMaster.SISItemCode, tblMaterialMaster.Group,
tblMaterialMaster.SubGroup, tblMaterialMaster.ListPrice,
tblMaterialMaster.Discount
FROM tblMaterialMaster
WHERE (((tblMaterialMaster.ListPrice)>0));