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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!