Question
1. Create the IMPORT_SALES_XX table based on the old Sales table 2. Create the IMPORT_MGRS_XX table based on the old Managers table 3. Create the
1. Create the IMPORT_SALES_XX table based on the old Sales table
2. Create the IMPORT_MGRS_XX table based on the old Managers table
3. Create the IMPORT_OE_XX table based on the old Operational Expenses table
4. Create a SELECT that joins the previous three IMPORT tables together
SELECT OldColumn1 AS NewColumn1,
OldColumn2 AS NewColumn2,
...
OldCoumnN AS NewColumnN
FROM ...
5. Confirm each new column name alias in your SELECT is unique
6. Add to your SELECT the PrimaryID column and then each table primary ID column name from each table in your database design diagram. Use NULL AS TableID. For instance:
SELECT ROWNUM AS PrimaryID,
NULL AS EmployeeID,
NULL AS CustomerID,
...
7. Create the IMPORT_ALL_XX table where XX is your initials using CREATE TABLE then adding your SELECT
CREATE TABLE IMPORT_ALL AS
-- your select goes here
8. Create the IMPORT_ALL_XX table where XX is your initials using CREATE TABLE then adding your SELECT
M Managers ManagerFirstName ManagerlastName ManagerTitle EmployeeFirstName EmplooyeeLastName EmployeeTitle OperationExpenses EmployeeFirstName/VendorName EmployeeLastName PaymentType Payment Amount Payment Date Address Quanity Apt City Province PostalCode Comments Sales Company Name RecipientFirstName RecipientLastName Product Quanity Address Apt Province Postal Code PricePerUnit TotalPrice Sales ManFirstName Sales ManastName
Step by Step Solution
3.44 Rating (154 Votes )
There are 3 Steps involved in it
Step: 1
Create the IMPORTSALESXX table based on the old Sales table CREATE TABLE IMPORTSALESXX ASSELECT FROM Sales Create the IMPORTMGRSXX table based on the ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started