Question: Suppose you have the following table in SQL Server: VENDOR_STORE (VendorID, VendorName, VendorPhone, StoreID, StoreName) And you wish to transform this table into two tables
Suppose you have the following table in SQL Server:
VENDOR_STORE (VendorID, VendorName, VendorPhone, StoreID, StoreName)
And you wish to transform this table into two tables as follows:
VENDOR (VendorID, VendorName, VendorPhone)
STORE (StoreID, StoreName, VendorID)
Write the SQL statements needed for filling the VENTOR and STORE tables with data from VENDOR_STORE.
NOTE: These tables are NOT in SQL Server, but you should use SQL Server to create your SQL code and then copy and paste it in the solution area below.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
