0% found this document useful (1 vote)
93 views5 pages

Insert Values Into PRICE Table

The document contains INSERT statements to populate data into tables in a database for testing purposes. Data is inserted into the PRICE, MOVIE, VIDEO, MEMBERSHIP, RENTAL, and DETAILRENTAL tables, including movie titles, prices, member information, rental records, and rental details.

Uploaded by

Dan Dan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
93 views5 pages

Insert Values Into PRICE Table

The document contains INSERT statements to populate data into tables in a database for testing purposes. Data is inserted into the PRICE, MOVIE, VIDEO, MEMBERSHIP, RENTAL, and DETAILRENTAL tables, including movie titles, prices, member information, rental records, and rental details.

Uploaded by

Dan Dan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

2.

The following tables provide a very small portion of the data that will be kept in the
database. The data needs to be inserted into the database for testing purposes. Write
the INSERT commands necessary to place the following data in the tables that were
created in Case 1. (If required by your DBMS, be certain to save the rows permanently.)
---Insert values into PRICE table---
INSERT INTO PRICE VALUES (1, ‘Standard’, 2, 1);
INSERT INTO PRICE VALUES (2, ‘New Release’,3.5, 3);
INSERT INTO PRICE VALUES (3, ‘Discount’, 1.5, 1);
INSERT INTO PRICE VALUES (4, ‘Weekly Special’, 1, 0.5);
---Insert values into MOVIE table---
INSERT INTO MOVIE VALUES (1234, ‘The Cesar Family Christmas’, 2016, 39.95,
FAMILY, 2);
INSERT INTO MOVIE VALUES (1235. ‘Smokey Mountain Wildlife’, 2013, 59.95,
ACTION, 1);
INSERT INTO MOVIE VALUES (1236, ‘ Richard Goodhope’, 2017, 59.95, DRAMA, 2);
INSERT INTO MOVIE VALUES (1237, ‘Beatnik Fever’, 2016, 29.95, COMEDY, 2);
INSERT INTO MOVIE VALUES (1238, ‘Constant Compansion’, 2017, 89.95, DRAMA,
NULL);
INSERT INTO MOVIE VALUES (1239, ‘Where Hope Dies’, 2007, 25.49, DRAMA, 3);
INSERT INTO MOVIE VALUES (1245, ‘Time to Burn’, 2014, 45.49, ACTION, 1);
INSERT INTO MOVIE VALUES (1246, ‘ What He Doesn’t Know’, 2015, 58.29,
COMEDY, 1);
---Insert values into VIDEO table---
INSERT INTO VIDEO VALUES (54321, ’18-JUN-17’, 1234);
INSERT INTO VIDEO VALUES (54324, ’18-JUN-17’, 1234);
INSERT INTO VIDEO VALUES (54325, ’18-JUN-17’, 1234);
INSERT INTO VIDEO VALUES (34341, ’22-JAN-16’, 1235);
INSERT INTO VIDEO VALUES (34342, ’22-JAN-16’, 1235);
INSERT INTO VIDEO VALUES (34366, ’02-MAR-18’, 1236);
INSERT INTO VIDEO VALUES (34367, ’02-MAR-28’, 1236);
INSERT INTO VIDEO VALUES (34368, ’02-MAR-18’, 1236);
INSERT INTO VIDEO VALUES (34369, ’02-MAR-18’, 1236);
INSERT INTO VIDEO VALUES (44392, ’21-OCT-17’, 1237);
INSERT INTO VIDEO VALUES (44397, ’21-OCT-17’, 1237);
INSERT INTO VIDEO VALUES (59237, ’14-FEB-18’, 1237);
INSERT INTO VIDEO VALUES (61388, ’25-JAN-15’, 1239);
INSERT INTO VIDEO VALUES (61353, ’28-JAN-15’, 1245);
INSERT INTO VIDEO VALUES (61354, ’28-JAN-15’, 1245);
INSERT INTO VIDEO VALUES (61367, ’30-JUL-17’, 1246);
INSERT INTO VIDEO VALUES (61369, ’30-JUL-17’, 1246);
---Insert values into MEMBERSHIP table---
INSERT INTO MEMBERSHIP VALUES (102, ‘Tami’, ‘Dawson’, ‘2632 Takli Circle’,
‘Norene’, ‘TN’, ‘37136’, 11);
INSERT INTO MEMBERSHIP VALUES (103, ‘Curt’, ‘Knight’, ‘4025 Cornell Court’,
‘Flatgap’, ‘KY’, ‘41219’, 6);
INSERT INTO MEMBERSHIP VALUES (104, ‘Jamal’, ‘Melendez’, ‘788 East 145 th
Avenue’, ‘Quebeck’, ‘TN’, ‘38579’, 0);
INSERT INTO MEMBERSHIP VALUES (105, ‘Iva’, ‘Mcclain’, ‘6045 Musket Ball Circle’,
‘Summit’, ‘KY’, ‘42783’, 15);
INSERT INTO MEMBERSHIP VALUES (106, ‘Miranda’, ‘Parks’, ‘4469 Maxwell Place’,
‘Germantown’, ‘TN’, ‘38183’, 0);
INSERT INTO MEMBERSHIP VALUES (107, ‘Rosario’, ‘Elliott’, ‘7578 Danner Avenue’,
‘Columbia’, ‘TN’, ‘38402’, 5);
INSERT INTO MEMBERSHIP VALUES (108, ‘Mattie’, ‘Guy’, ‘4390 Evergreen Street’,
‘Lily’, ‘KY’, ‘40740’, 0);
INSERT INTO MEMBERSHIP VALUES (109, ‘Clint’, ‘Ochoa’, ‘1711 Elm Street’,
‘Greeneville’, ‘TN’, ‘37745’, 10);
INSERT INTO MEMBERSHIP VALUES (110, ‘Lewis’, ‘Rosales’, ‘4524 Southwind
Circle’, ‘Counce’, ‘TN’, ‘38326’, 0);
INSERT INTO MEMBERSHIP VALUES (111, ‘Stacy’, ‘Mann’, ‘2789 East Cook Avenue’,
‘Murfreesboro’, ‘TN’, ‘37132’, 8);
INSERT INTO MEMBERSHIP VALUES (112, ‘Luis’, ‘Trujillo’, ‘7267 Malvin Avenue’,
‘Heiskell’, ‘TN’, ‘37754’, 3);
INSERT INTO MEMBERSHIP VALUES (113, ‘Minnie’, ‘Gonzales’, ‘6430 Vasili Drive’,
‘Williston’, ‘TN’, ‘38076’, 0);
---Insert values into RENTAL table---
INSERT INTO RENTAL VALUES (1001, ‘01-MAR-18’, 103);
INSERT INTO RENTAL VALUES (1002, ‘01-MAR-18’, 105);
INSERT INTO RENTAL VALUES (1003, ‘01-MAR-18’, 102);
INSERT INTO RENTAL VALUES (1004, ‘01-MAR-18’, 110);
INSERT INTO RENTAL VALUES (1005, ‘01-MAR-18’, 111);
INSERT INTO RENTAL VALUES (1006, ‘01-MAR-18’, 107);
INSERT INTO RENTAL VALUES (1007, ‘01-MAR-18’, 104);
INSERT INTO RENTAL VALUES (1008, ‘01-MAR-18’, 105);
INSERT INTO RENTAL VALUES (1009, ‘01-MAR-18’, 111);
---Insert values into DETAILRENTAL table---
INSERT INTO DETAILRENTAL VALUES (1001, 34342, 2, ‘04-MAR-18’, ‘02-MAR-18’,
NULL);
INSERT INTO DETAILRENTAL VALUES (1001, 61353, 2, ‘04-MAR-18’, ‘03-MAR-18’,
1);
INSERT INTO DETAILRENTAL VALUES (1002, 59237, 3.5, ‘04-MAR-18’, ‘04-MAR-18’,
3);
INSERT INTO DETAILRENTAL VALUES (1003, 54325, 3.5, ‘04-MAR-18’, ‘09-MAR-18’,
3);
INSERT INTO DETAILRENTAL VALUES (1003, 61369, 2, ‘06-MAR-18’, ‘09-MAR-18’,
1);
INSERT INTO DETAILRENTAL VALUES (1003, 61388, 0, ‘06-MAR-18’, ‘09-MAR-18’,
1);
INSERT INTO DETAILRENTAL VALUES (1004, 44392, 3.5, ‘05-MAR-18’, ‘07-MAR-18’,
3);
INSERT INTO DETAILRENTAL VALUES (1004, 34367, 3.5, ‘05-MAR-18’, ‘07-MAR-18’,
3);
INSERT INTO DETAILRENTAL VALUES (1004, 34341, 2, ‘07-MAR-18’, ‘07-MAR-18’,
1);
INSERT INTO DETAILRENTAL VALUES (1005, 34342, 2, ‘07-MAR-18’, ‘05-MAR-18’,
1);
INSERT INTO DETAILRENTAL VALUES (1005, 44397, 3.5, ‘05-MAR-18’, ‘05-MAR-18’,
3);
INSERT INTO DETAILRENTAL VALUES (1006, 34366, 3.5, ‘05-MAR-18’, ‘04-MAR-18’,
3);
INSERT INTO DETAILRENTAL VALUES (1006, 61367, 2, ‘07-MAR-18’, NULL, 1);
INSERT INTO DETAILRENTAL VALUES (1007, 34368, 2, ‘05-MAR-18’, NULL, 3);
INSERT INTO DETAILRENTAL VALUES (1008, 34369, 3.5, ‘05-MAR-18’, ‘05-MAR-18’,
3);
INSERT INTO DETAILRENTAL VALUES (1009, 54324, 3.5, ‘05-MAR-18’, NULL, 3);
INSERT INTO DETAILRENTAL VALUES (1001, 34366, 3.5, ‘04-MAR-18’, ‘02-MAR-18’,
3);

You might also like