J
Joy Rose
How do I delete duplicate info in a query? i.e. -- query lists Order date,
Customer #, Customer Name, Customer Address, Customer Invoice #, Product ID,
Customer Sales Dollars, customer payments.
If the customer purchased more than one product, all info is listed as
below:
10/9/04(Order Date) #7(Customer # John Smith(Customer Name) PO 222 South
Forks, ID(Address) #10(Invoice #), Product 601DV(Product ID), $50,000.00
(Sales), $2000.00 (payments)
10/9/04(Order Date) #7(Customer # John Smith(Customer Name) PO 222 South
Forks, ID(Address) #10(Invoice #), Product 999(Product ID), $50,000.00
(Sales), $2000.00 (payments)
10/9/04(Order Date) #7(Customer # John Smith(Customer Name) PO 222 South
Forks, ID(Address) #10(Invoice #), Product XXX(Product ID), $50,000.00
(Sales), $2000.00 (payments)
The way it appears now looks as if the customer ordered $150,000.00 (50,000
X 3 line items) and made $6000 (2000 X 3) in payments instead of $50,000
total sales and $2000 total payments.
What I would like to appear is:
10/9/04(Order Date) #7(Customer #) John Smith(Customer Name) PO 222
South Forks, ID(Address) #10(Invoice #), Product 60lDV(Product ID),
Product 999
Product XXX
$50,000.00 (Sales), $2000.00 (payments)
Can this be done with a query? I am using query as this needs to be
exported to excel.
Thank you,
Customer #, Customer Name, Customer Address, Customer Invoice #, Product ID,
Customer Sales Dollars, customer payments.
If the customer purchased more than one product, all info is listed as
below:
10/9/04(Order Date) #7(Customer # John Smith(Customer Name) PO 222 South
Forks, ID(Address) #10(Invoice #), Product 601DV(Product ID), $50,000.00
(Sales), $2000.00 (payments)
10/9/04(Order Date) #7(Customer # John Smith(Customer Name) PO 222 South
Forks, ID(Address) #10(Invoice #), Product 999(Product ID), $50,000.00
(Sales), $2000.00 (payments)
10/9/04(Order Date) #7(Customer # John Smith(Customer Name) PO 222 South
Forks, ID(Address) #10(Invoice #), Product XXX(Product ID), $50,000.00
(Sales), $2000.00 (payments)
The way it appears now looks as if the customer ordered $150,000.00 (50,000
X 3 line items) and made $6000 (2000 X 3) in payments instead of $50,000
total sales and $2000 total payments.
What I would like to appear is:
10/9/04(Order Date) #7(Customer #) John Smith(Customer Name) PO 222
South Forks, ID(Address) #10(Invoice #), Product 60lDV(Product ID),
Product 999
Product XXX
$50,000.00 (Sales), $2000.00 (payments)
Can this be done with a query? I am using query as this needs to be
exported to excel.
Thank you,