I need to take a customer with multiple products and put all informaton on one row to export into excel or comma delimited to send off to a fulfillment center.
I am running a SQL 7 database with an Access interface/frontend.
An example from Northwind looks like this,
OrderDate CompanyName OrderID ProductID Quantity UnitPrice
7/4/1996 Vins et alcools Chevalier 10248 Queso Cabrales 12 $14.00
7/4/1996 Vins et alcools Chevalier 10248 Singaporean Mee 10 $9.80
7/5/1996 Toms Spezialitäten 10249 Tofu 9 $18.60
7/5/1996 Toms Spezialitäten 10249 Queso Cabrales 12 $14.00
7/8/1996 Hanari Carnes 10250 Jack's New Englr 10 $7.70
7/8/1996 Hanari Carnes 10250 Manjimup Dried s 35 $42.40
And I need it to look like this:
OrderDate CompanyName OrderID (ProductID Quantity UnitPrice) (ProductID Quantity UnitPrice) etc . . etc . .
7/4/1996 Vins et alcools Chevalier 10248 Queso Cabrales 12 $14.00 Singaporean Mee 10 $9.80
7/5/1996 Toms Spezialitäten 10249 Tofu 9 $18.60 Queso Cabrales 12 $14.00
7/8/1996 Hanari Carnes 10250 Jack's New Englr 10 $7.70 Manjimup Dried s 35 $42.40
The MAX number of orders per customer allowed by fullfillment would be NINE. But in my case the max would be FIVE with the other total 4 product related fields blank.
My hopes would be to get this query into a spread sheet so I could make additional changes if needed, then save as a comma delimited file and send off to fulfillment.
The total number of columns/fields the fulfillment center is asking for is 84 in a comma delimited file.
Thanks for you help,
MSII
klarson@msiincdirect.com
I am running a SQL 7 database with an Access interface/frontend.
An example from Northwind looks like this,
OrderDate CompanyName OrderID ProductID Quantity UnitPrice
7/4/1996 Vins et alcools Chevalier 10248 Queso Cabrales 12 $14.00
7/4/1996 Vins et alcools Chevalier 10248 Singaporean Mee 10 $9.80
7/5/1996 Toms Spezialitäten 10249 Tofu 9 $18.60
7/5/1996 Toms Spezialitäten 10249 Queso Cabrales 12 $14.00
7/8/1996 Hanari Carnes 10250 Jack's New Englr 10 $7.70
7/8/1996 Hanari Carnes 10250 Manjimup Dried s 35 $42.40
And I need it to look like this:
OrderDate CompanyName OrderID (ProductID Quantity UnitPrice) (ProductID Quantity UnitPrice) etc . . etc . .
7/4/1996 Vins et alcools Chevalier 10248 Queso Cabrales 12 $14.00 Singaporean Mee 10 $9.80
7/5/1996 Toms Spezialitäten 10249 Tofu 9 $18.60 Queso Cabrales 12 $14.00
7/8/1996 Hanari Carnes 10250 Jack's New Englr 10 $7.70 Manjimup Dried s 35 $42.40
The MAX number of orders per customer allowed by fullfillment would be NINE. But in my case the max would be FIVE with the other total 4 product related fields blank.
My hopes would be to get this query into a spread sheet so I could make additional changes if needed, then save as a comma delimited file and send off to fulfillment.
The total number of columns/fields the fulfillment center is asking for is 84 in a comma delimited file.
Thanks for you help,
MSII
klarson@msiincdirect.com