Select statement:
{AgdataView.Distributor_IC} in
["0216501890000",
"0091965930000",
"7939627130000"]
or
{AgdataView.Reseller_IC} in
["0216501890000",
"0091965930000",
"7939627130000"]
Each record in the database has both a Distributor_IC and Reseller_IC. The report needs to subtotal on every record found. I need the SQL to determine if the IC# belongs to a Distributor or Reseller, then group by company name (Distributor Name or Reseller Name) and then by product name and subtotal by company name.
I have 2 grouping formulas for use in my group expert: Distributor Group and Reseller Group.
Group Expert is setup like this:
Distributor Group
-Reseller Group
--Product Name
This isn't working correctly. Any ideas? Thanks.
{AgdataView.Distributor_IC} in
["0216501890000",
"0091965930000",
"7939627130000"]
or
{AgdataView.Reseller_IC} in
["0216501890000",
"0091965930000",
"7939627130000"]
Each record in the database has both a Distributor_IC and Reseller_IC. The report needs to subtotal on every record found. I need the SQL to determine if the IC# belongs to a Distributor or Reseller, then group by company name (Distributor Name or Reseller Name) and then by product name and subtotal by company name.
I have 2 grouping formulas for use in my group expert: Distributor Group and Reseller Group.
Group Expert is setup like this:
Distributor Group
-Reseller Group
--Product Name
This isn't working correctly. Any ideas? Thanks.