SarasotaIT
IS-IT--Management
Hello,
I have a single table (tbl1) with 4 columns: StoreName, StoreOwnerID, ProdSold, Sales. It looks like this:
StoreName StoreOwnerID ProdSold Sales
-------------------------------------------------------------
Store1 001 100 1000
Store2 001 200 2000
Store1 002 300 3000
Store2 002 200 2000
Store3 002 300 3000
Store1 003 200 2000
Store2 003 300 3000
I am trying to build a query in Access that will take the data from this table and populate a second table (tbl2) that has the following record layout:
StoreOwnerID
StoreName1
ProdSold1
Sales1
StoreName2
ProdSold2
Sales2
StoreName3
ProdSold3
Sales3
so, tbl2 should look like this:
StoreOwnerID StoreName1 ProdSold1 Sales1 StoreName2 ProdSold2 Sales2 StoreName3 ProdSold3 Sales3
-----------------------------------------------------------------------------------------------------------------------------------
001 Store1 100 1000 Store2 200 2000
002 Store1 300 3000 Store2 200 2000 Store3 300 3000
003 Store1 200 2000 Store2 300 3000
This seems like it should be quite simple, but I admit, I am a newbie at SQL! :-/ Any help would be GREATLY appreciated!!
Thank you in advance!
Terry
I have a single table (tbl1) with 4 columns: StoreName, StoreOwnerID, ProdSold, Sales. It looks like this:
StoreName StoreOwnerID ProdSold Sales
-------------------------------------------------------------
Store1 001 100 1000
Store2 001 200 2000
Store1 002 300 3000
Store2 002 200 2000
Store3 002 300 3000
Store1 003 200 2000
Store2 003 300 3000
I am trying to build a query in Access that will take the data from this table and populate a second table (tbl2) that has the following record layout:
StoreOwnerID
StoreName1
ProdSold1
Sales1
StoreName2
ProdSold2
Sales2
StoreName3
ProdSold3
Sales3
so, tbl2 should look like this:
StoreOwnerID StoreName1 ProdSold1 Sales1 StoreName2 ProdSold2 Sales2 StoreName3 ProdSold3 Sales3
-----------------------------------------------------------------------------------------------------------------------------------
001 Store1 100 1000 Store2 200 2000
002 Store1 300 3000 Store2 200 2000 Store3 300 3000
003 Store1 200 2000 Store2 300 3000
This seems like it should be quite simple, but I admit, I am a newbie at SQL! :-/ Any help would be GREATLY appreciated!!
Thank you in advance!
Terry