Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have 3 tables that all connect using a primary key of CustomerID. All of these tables also have a store_id field that is specific to that table. I then have a lookup table with store_id information which include information like store name and other store identifier information. When I try to load these I'm getting loop errors. What is the best way to load these?
Transaction table
Customer ID
Order ID
Store ID
Sales Amount
Application table
Customer ID
Store ID
Date
Customer table
Customer ID
Customer status
Store ID
Customer Address
Store ID Lookup Table
Store ID
Store Name
Store Type
TAC:
LOAD [Customer ID],
[Order ID],
[Store ID],
[Sales Amount]
FROM Transaction_table;
Concatenate
LOAD [Customer ID],
[Store ID],
Date
FROM Application_table;
Concatenate
LOAD [Customer ID],
[Customer status],
[Store ID],
[Customer Address]
FROM Customer_table;
Store:
LOAD Distinct [Store ID]
Resident TAC;
Left Joins (Store)
LOAD [Store ID],
[Store Name],
[Store Type]
FROM Store;
Well, it ultimately depends on the data model and the specific questions that will be asked based on it. In any case, you could CONCATENATE the three tables and then link the attributes of the store to the resultant table.
TAC:
LOAD [Customer ID],
[Order ID],
[Store ID],
[Sales Amount]
FROM Transaction_table;
Concatenate
LOAD [Customer ID],
[Store ID],
Date
FROM Application_table;
Concatenate
LOAD [Customer ID],
[Customer status],
[Store ID],
[Customer Address]
FROM Customer_table;
Store:
LOAD Distinct [Store ID]
Resident TAC;
Left Joins (Store)
LOAD [Store ID],
[Store Name],
[Store Type]
FROM Store;
Awesome. Thank you!