Please help me with the solution:INSERT INTO LINE VALUES('1001','1','123-21UUY','1','189.99'); INSERT INTO LINE VALUES('1001','2','SRE-657UG','3','2.99'); INSERT INTO LINE VALUES('1002','1','QER-34256','2','18.63'); INSERT INTO LINE VALUES('1003','1','ZZX/3245Q','1','6.79'); INSERT INTO LINE VALUES('1003','2','SRE-657UG','1','2.99'); INSERT INTO LINE VALUES('1003','3','001278-AB','1','12.95'); INSERT INTO LINE VALUES('1004','1','001278-AB','1','12.95'); INSERT INTO LINE VALUES('1004','2','SRE-657UG','2','2.99'); /* -- */ CREATE TABLE PRODUCT ( PROD_CODE varchar(10), PROD_DESCRIPT varchar(35), PROD_PRICE numeric, PROD_ON_HAND int, VEND_CODE int ); INSERT INTO PRODUCT VALUES('001278-AB','Claw hammer','12.95','23','232'); INSERT INTO PRODUCT VALUES('123-21UUY','Houselite chain saw, 16-in. bar','189.99','4','235'); INSERT INTO PRODUCT VALUES('QER-34256','Sledge hammer, 16-lb. head','18.63','6','231'); INSERT INTO PRODUCT VALUES('SRE-657UG','Rat-tail file','2.99','15','232'); INSERT INTO PRODUCT VALUES('ZZX/3245Q','Steel tape, 12-ft. length','6.79','8','235'); /* -- */ CREATE TABLE VENDOR ( VEND_CODE int, VEND_CONTACT varchar(25), VEND_AREACODE varchar(3), VEND_PHONE varchar(8) ); INSERT INTO VENDOR VALUES('230','Shelly K. Smithson','608','555-1234'); INSERT INTO VENDOR VALUES('231','James Johnson','615','123-4536'); INSERT INTO VENDOR VALUES('232','Annelise Crystall','608','224-2134'); INSERT INTO VENDOR VALUES('233','Candice Wallace','904','342-6567'); INSERT INTO VENDOR VALUES('234','Arthur Jones','615','123-3324'); INSERT INTO VENDOR VALUES('235','Henry Ortozo','615','899-3425');
Please help me with the solution:INSERT INTO LINE VALUES('1001','1','123-21UUY','1','189.99'); INSERT INTO LINE VALUES('1001','2','SRE-657UG','3','2.99'); INSERT INTO LINE VALUES('1002','1','QER-34256','2','18.63'); INSERT INTO LINE VALUES('1003','1','ZZX/3245Q','1','6.79'); INSERT INTO LINE VALUES('1003','2','SRE-657UG','1','2.99'); INSERT INTO LINE VALUES('1003','3','001278-AB','1','12.95'); INSERT INTO LINE VALUES('1004','1','001278-AB','1','12.95'); INSERT INTO LINE VALUES('1004','2','SRE-657UG','2','2.99'); /* -- */ CREATE TABLE PRODUCT ( PROD_CODE varchar(10), PROD_DESCRIPT varchar(35), PROD_PRICE numeric, PROD_ON_HAND int, VEND_CODE int ); INSERT INTO PRODUCT VALUES('001278-AB','Claw hammer','12.95','23','232'); INSERT INTO PRODUCT VALUES('123-21UUY','Houselite chain saw, 16-in. bar','189.99','4','235'); INSERT INTO PRODUCT VALUES('QER-34256','Sledge hammer, 16-lb. head','18.63','6','231'); INSERT INTO PRODUCT VALUES('SRE-657UG','Rat-tail file','2.99','15','232'); INSERT INTO PRODUCT VALUES('ZZX/3245Q','Steel tape, 12-ft. length','6.79','8','235'); /* -- */ CREATE TABLE VENDOR ( VEND_CODE int, VEND_CONTACT varchar(25), VEND_AREACODE varchar(3), VEND_PHONE varchar(8) ); INSERT INTO VENDOR VALUES('230','Shelly K. Smithson','608','555-1234'); INSERT INTO VENDOR VALUES('231','James Johnson','615','123-4536'); INSERT INTO VENDOR VALUES('232','Annelise Crystall','608','224-2134'); INSERT INTO VENDOR VALUES('233','Candice Wallace','904','342-6567'); INSERT INTO VENDOR VALUES('234','Arthur Jones','615','123-3324'); INSERT INTO VENDOR VALUES('235','Henry Ortozo','615','899-3425');
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 6 images