SlideShare a Scribd company logo
1 of 10
I have the attached copy of the assignment description. And
here is the scripts.
/* Database Systems, 9th Ed., Coronel/MOrris/Rob */
/* Type of SQL : MySQL */
CREATE SCHEMA TINY_VIDEO;
USE TINY_VIDEO;
/*Create table price*/
CREATE TABLE price
(price_id INTEGER PRIMARY KEY
AUTO_INCREMENT,
description VARCHAR(20) NOT NULL,
rental_fee DECIMAL(5,2),
daily_late_fee DECIMAL(5,2));
/*Insert data into price*/
INSERT INTO price VALUES(1,'Standard',2.5,1);
INSERT INTO price VALUES(2,'New Release',4.0,3);
INSERT INTO price VALUES(3,'Discount',2.0,1);
INSERT INTO price VALUES(4,'Weekly Special',1.5,.5);
/*Create table movie*/
CREATE TABLE movie
(movie_id INTEGER PRIMARY KEY
AUTO_INCREMENT,
title VARCHAR(75) NOT NULL,
year_released INTEGER,
cost DECIMAL(5,2),
genre VARCHAR(50),
price_id INTEGER,
FOREIGN KEY(price_id) REFERENCES price(price_id));
/*Insert data into movie*/
INSERT INTO movie VALUES(1234,'The Cesar Family
Christmas',2007,39.95,'FAMILY',2);
INSERT INTO movie VALUES(1235,'Smokey Mountain
Wildlife',2004,59.95,'ACTION',3);
INSERT INTO movie VALUES(1236,'Richard
Goodhope',2008,59.95,'DRAMA',2);
INSERT INTO movie VALUES(1237,'Beatnik
Fever',2007,29.95,'COMEDY',2);
INSERT INTO movie VALUES(1238,'Constant
Companion',2008,89.95,'DRAMA',NULL);
INSERT INTO movie VALUES(1239,'Where Hope
Dies',1998,25.49,'DRAMA',3);
INSERT INTO movie VALUES(1245,'Time to
Burn',2006,45.49,'ACTION',3);
INSERT INTO movie VALUES(1246,'What He Doesn''t
Know',2006,58.29,'COMEDY',1);
/*Create table video*/
CREATE TABLE video
(video_id INTEGER PRIMARY KEY AUTO_INCREMENT,
purchase_date DATE,
movie_id INTEGER,
FOREIGN KEY(movie_id) REFERENCES movie(movie_id));
/*Insert data into video*/
INSERT INTO video VALUES(54321,'2008-06-18',1234);
INSERT INTO video VALUES(54324,'2008-06-18',1234);
INSERT INTO video VALUES(54325,'2008-06-18',1234);
INSERT INTO video VALUES(34341,'2007-01-22',1235);
INSERT INTO video VALUES(34342,'2007-01-22',1235);
INSERT INTO video VALUES(34366,'2009-03-02',1236);
INSERT INTO video VALUES(34367,'2009-03-02',1236);
INSERT INTO video VALUES(34368,'2009-03-02',1236);
INSERT INTO video VALUES(34369,'2009-03-02',1236);
INSERT INTO video VALUES(44392,'2008-10-21',1237);
INSERT INTO video VALUES(44397,'2008-10-21',1237);
INSERT INTO video VALUES(59237,'2009-02-14',1237);
INSERT INTO video VALUES(61388,'2007-01-25',1239);
INSERT INTO video VALUES(61353,'2006-01-28',1245);
INSERT INTO video VALUES(61354,'2006-01-28',1245);
INSERT INTO video VALUES(61367,'2008-07-30',1246);
INSERT INTO video VALUES(61369,'2008-07-30',1246);
/*Create table membership*/
CREATE TABLE membership
(membership_id INTEGER PRIMARY KEY
AUTO_INCREMENT,
first_name VARCHAR(30) NOT NULL,
last_name VARCHAR(30) NOT NULL,
street VARCHAR(120),
city VARCHAR(50),
state VARCHAR(2),
zip VARCHAR(5),
balance DECIMAL(10,2));
/*Insert data into membership*/
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 145th
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','Greenville','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
Melvin Avenue','Heiskell','TN','37754',3);
INSERT INTO membership
VALUES(113,'Minnie','Gonzales','124 6th Street
West','Williston','ND','58801',0);
/*Create table rental*/
CREATE TABLE rental
(rental_id INTEGER PRIMARY KEY AUTO_INCREMENT,
rental_date DATE,
membership_id INTEGER,
FOREIGN KEY(membership_id) REFERENCES
membership(membership_id));
/*Insert data into rental*/
INSERT INTO rental VALUES(1001,'2009-03-01',103);
INSERT INTO rental VALUES(1002,'2009-03-01',105);
INSERT INTO rental VALUES(1003,'2009-03-02',102);
INSERT INTO rental VALUES(1004,'2009-03-02',110);
INSERT INTO rental VALUES(1005,'2009-03-02',111);
INSERT INTO rental VALUES(1006,'2009-03-02',107);
INSERT INTO rental VALUES(1007,'2009-03-02',104);
INSERT INTO rental VALUES(1008,'2009-03-03',105);
INSERT INTO rental VALUES(1009,'2009-03-03',111);
/*Create table detailrental*/
CREATE TABLE detail_rental
(rental_id INTEGER,
video_id INTEGER,
fee DECIMAL(5,2),
due_date DATE,
return_date DATE,
daily_late_fee DECIMAL(5,2),
PRIMARY KEY(rental_id, video_id),
FOREIGN KEY(rental_id) REFERENCES rental(rental_id),
FOREIGN KEY(video_id) REFERENCES video(video_id));
/*Insert data into dailyrental*/
INSERT INTO detail_rental VALUES(1001,34342,2,'2009-03-
04','2009-03-02',1);
INSERT INTO detail_rental VALUES(1001,61353,2,'2009-03-
04','2009-03-03',1);
INSERT INTO detail_rental VALUES(1002,59237,3.5,'2009-03-
04','2009-03-04',3);
INSERT INTO detail_rental VALUES(1003,54325,3.5,'2009-03-
04','2009-03-09',3);
INSERT INTO detail_rental VALUES(1003,61369,2,'2009-03-
06','2009-03-09',1);
INSERT INTO detail_rental VALUES(1003,61388,0,'2009-03-
06','2009-03-09',1);
INSERT INTO detail_rental VALUES(1004,44392,3.5,'2009-03-
05','2009-03-07',3);
INSERT INTO detail_rental VALUES(1004,34367,3.5,'2009-03-
05','2009-03-07',3);
INSERT INTO detail_rental VALUES(1004,34341,2,'2009-03-
07','2009-03-07',1);
INSERT INTO detail_rental VALUES(1005,34342,2,'2009-03-
07','2009-03-05',1);
INSERT INTO detail_rental VALUES(1005,44397,3.5,'2009-03-
05','2009-03-05',3);
INSERT INTO detail_rental VALUES(1006,34366,3.5,'2009-03-
05','2009-03-04',3);
INSERT INTO detail_rental VALUES(1006,61367,2,'2009-03-
07',NULL,1);
INSERT INTO detail_rental VALUES(1007,34368,3.5,'2009-03-
05',NULL,3);
INSERT INTO detail_rental VALUES(1008,34369,3.5,'2009-03-
05','2009-03-05',3);
INSERT INTO detail_rental VALUES(1009,54324,3.5,'2009-03-
05',NULL,3);
INSERT INTO detail_rental VALUES(1001,34366,3.5,'2009-03-
04','2009-03-02',3);

More Related Content

Similar to I have the attached copy of the assignment description. And here is .docx

The resto txt Use for TM254 2021J TMA02 Question 6 .pdf
The resto txt     Use for TM254 2021J TMA02 Question 6 .pdfThe resto txt     Use for TM254 2021J TMA02 Question 6 .pdf
The resto txt Use for TM254 2021J TMA02 Question 6 .pdf
giriraj65
 
# Dump File## Database is ported from MS Access#---------.docx
# Dump File## Database is ported from MS Access#---------.docx# Dump File## Database is ported from MS Access#---------.docx
# Dump File## Database is ported from MS Access#---------.docx
katherncarlyle
 
Starting from the database used in Project 1 (see the slightly cha.docx
Starting from the database used in Project 1 (see the slightly cha.docxStarting from the database used in Project 1 (see the slightly cha.docx
Starting from the database used in Project 1 (see the slightly cha.docx
dessiechisomjj4
 
-- script to create NORTHWOODS database-- revised 8172002 JM .docx
-- script to create NORTHWOODS database-- revised 8172002 JM .docx-- script to create NORTHWOODS database-- revised 8172002 JM .docx
-- script to create NORTHWOODS database-- revised 8172002 JM .docx
honey725342
 
Use this script for the assignment.Please follow instructions as t.docx
Use this script for the assignment.Please follow instructions as t.docxUse this script for the assignment.Please follow instructions as t.docx
Use this script for the assignment.Please follow instructions as t.docx
garnerangelika
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docx
carolinef5
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docx
donaldp2
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docx
cuddietheresa
 
Here is the company database--comments can be addedD.pdf
Here is the company database--comments can be addedD.pdfHere is the company database--comments can be addedD.pdf
Here is the company database--comments can be addedD.pdf
fckindswear
 

Similar to I have the attached copy of the assignment description. And here is .docx (19)

- Php myadmin sql dump-- version 4.0.10.7-- httpwww.php
 - Php myadmin sql dump-- version 4.0.10.7-- httpwww.php - Php myadmin sql dump-- version 4.0.10.7-- httpwww.php
- Php myadmin sql dump-- version 4.0.10.7-- httpwww.php
 
The resto txt Use for TM254 2021J TMA02 Question 6 .pdf
The resto txt     Use for TM254 2021J TMA02 Question 6 .pdfThe resto txt     Use for TM254 2021J TMA02 Question 6 .pdf
The resto txt Use for TM254 2021J TMA02 Question 6 .pdf
 
# Dump File## Database is ported from MS Access#---------.docx
# Dump File## Database is ported from MS Access#---------.docx# Dump File## Database is ported from MS Access#---------.docx
# Dump File## Database is ported from MS Access#---------.docx
 
Starting from the database used in Project 1 (see the slightly cha.docx
Starting from the database used in Project 1 (see the slightly cha.docxStarting from the database used in Project 1 (see the slightly cha.docx
Starting from the database used in Project 1 (see the slightly cha.docx
 
-- script to create NORTHWOODS database-- revised 8172002 JM .docx
-- script to create NORTHWOODS database-- revised 8172002 JM .docx-- script to create NORTHWOODS database-- revised 8172002 JM .docx
-- script to create NORTHWOODS database-- revised 8172002 JM .docx
 
Md
MdMd
Md
 
Use this script for the assignment.Please follow instructions as t.docx
Use this script for the assignment.Please follow instructions as t.docxUse this script for the assignment.Please follow instructions as t.docx
Use this script for the assignment.Please follow instructions as t.docx
 
Writeable ct es_pgcon_may_2011
Writeable ct es_pgcon_may_2011Writeable ct es_pgcon_may_2011
Writeable ct es_pgcon_may_2011
 
Cassandra v3.0 at Rakuten meet-up on 12/2/2015
Cassandra v3.0 at Rakuten meet-up on 12/2/2015Cassandra v3.0 at Rakuten meet-up on 12/2/2015
Cassandra v3.0 at Rakuten meet-up on 12/2/2015
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docx
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docx
 
Description Master Index of EDGAR Dissemination FeedL.docx
Description           Master Index of EDGAR Dissemination FeedL.docxDescription           Master Index of EDGAR Dissemination FeedL.docx
Description Master Index of EDGAR Dissemination FeedL.docx
 
Doctors association db file
Doctors association db fileDoctors association db file
Doctors association db file
 
Writeable CTEs: The Next Big Thing
Writeable CTEs: The Next Big ThingWriteable CTEs: The Next Big Thing
Writeable CTEs: The Next Big Thing
 
Here is the company database--comments can be addedD.pdf
Here is the company database--comments can be addedD.pdfHere is the company database--comments can be addedD.pdf
Here is the company database--comments can be addedD.pdf
 
Database Concepts Team Project.pptx
Database Concepts Team Project.pptxDatabase Concepts Team Project.pptx
Database Concepts Team Project.pptx
 
Cassandra 2.2 & 3.0
Cassandra 2.2 & 3.0Cassandra 2.2 & 3.0
Cassandra 2.2 & 3.0
 
Functions
FunctionsFunctions
Functions
 
SQL structure query language full presentation
SQL structure query language full presentationSQL structure query language full presentation
SQL structure query language full presentation
 

More from samirapdcosden

I need help with my final paper please. I have attached my final pap.docx
I need help with my final paper please. I have attached my final pap.docxI need help with my final paper please. I have attached my final pap.docx
I need help with my final paper please. I have attached my final pap.docx
samirapdcosden
 
I need help with it.Team PresentationCrisis Communication .docx
I need help with it.Team PresentationCrisis Communication .docxI need help with it.Team PresentationCrisis Communication .docx
I need help with it.Team PresentationCrisis Communication .docx
samirapdcosden
 
I need good translation into EnglishПервая публикация 11-й номе.docx
I need good translation into EnglishПервая публикация 11-й номе.docxI need good translation into EnglishПервая публикация 11-й номе.docx
I need good translation into EnglishПервая публикация 11-й номе.docx
samirapdcosden
 
I need help with 200 matching questions about the movie The Odyssey.docx
I need help with 200 matching questions about the movie The Odyssey.docxI need help with 200 matching questions about the movie The Odyssey.docx
I need help with 200 matching questions about the movie The Odyssey.docx
samirapdcosden
 
I need at least a 6 page paper apa format .  Please follow the rubic.docx
I need at least a 6 page paper apa format .  Please follow the rubic.docxI need at least a 6 page paper apa format .  Please follow the rubic.docx
I need at least a 6 page paper apa format .  Please follow the rubic.docx
samirapdcosden
 
I need APA style, 1-2 pages, 12 pt Time New Roman.Thank You in Adv.docx
I need APA style, 1-2 pages, 12 pt Time New Roman.Thank You in Adv.docxI need APA style, 1-2 pages, 12 pt Time New Roman.Thank You in Adv.docx
I need APA style, 1-2 pages, 12 pt Time New Roman.Thank You in Adv.docx
samirapdcosden
 
I need at least a 10 page paper. Apa format following with a sample .docx
I need at least a 10 page paper. Apa format following with a sample .docxI need at least a 10 page paper. Apa format following with a sample .docx
I need at least a 10 page paper. Apa format following with a sample .docx
samirapdcosden
 
I need an expert writer and someone major in Econresearcher to Help.docx
I need an expert writer and someone major in Econresearcher to Help.docxI need an expert writer and someone major in Econresearcher to Help.docx
I need an expert writer and someone major in Econresearcher to Help.docx
samirapdcosden
 

More from samirapdcosden (20)

I need help with completing, analyzing on the schedule L of an 1120 .docx
I need help with completing, analyzing on the schedule L of an 1120 .docxI need help with completing, analyzing on the schedule L of an 1120 .docx
I need help with completing, analyzing on the schedule L of an 1120 .docx
 
I need help with my final paper please. I have attached my final pap.docx
I need help with my final paper please. I have attached my final pap.docxI need help with my final paper please. I have attached my final pap.docx
I need help with my final paper please. I have attached my final pap.docx
 
i need help with answering these two questions by writing essay..docx
i need help with answering these two questions by writing essay..docxi need help with answering these two questions by writing essay..docx
i need help with answering these two questions by writing essay..docx
 
I need help rewording this and is due by 1230 tonight.Standard .docx
I need help rewording this and is due by 1230 tonight.Standard .docxI need help rewording this and is due by 1230 tonight.Standard .docx
I need help rewording this and is due by 1230 tonight.Standard .docx
 
i need help in writing an essay for history class. It should be two .docx
i need help in writing an essay for history class. It should be two .docxi need help in writing an essay for history class. It should be two .docx
i need help in writing an essay for history class. It should be two .docx
 
I need help on a topic in researching. the Topic is Many people .docx
I need help on a topic in researching. the Topic is Many people .docxI need help on a topic in researching. the Topic is Many people .docx
I need help on a topic in researching. the Topic is Many people .docx
 
I need help with it.Team PresentationCrisis Communication .docx
I need help with it.Team PresentationCrisis Communication .docxI need help with it.Team PresentationCrisis Communication .docx
I need help with it.Team PresentationCrisis Communication .docx
 
I need good translation into EnglishПервая публикация 11-й номе.docx
I need good translation into EnglishПервая публикация 11-й номе.docxI need good translation into EnglishПервая публикация 11-й номе.docx
I need good translation into EnglishПервая публикация 11-й номе.docx
 
I need each question answered and needs be separte answered.The Hu.docx
I need each question answered and needs be separte answered.The Hu.docxI need each question answered and needs be separte answered.The Hu.docx
I need each question answered and needs be separte answered.The Hu.docx
 
I need help with an assignment.Develop a five page APA style paper.docx
I need help with an assignment.Develop a five page APA style paper.docxI need help with an assignment.Develop a five page APA style paper.docx
I need help with an assignment.Develop a five page APA style paper.docx
 
i need help in computer science CSIS 101 in moodle and wordpress-.docx
i need help in computer science CSIS 101 in moodle and wordpress-.docxi need help in computer science CSIS 101 in moodle and wordpress-.docx
i need help in computer science CSIS 101 in moodle and wordpress-.docx
 
I need help with 200 matching questions about the movie The Odyssey.docx
I need help with 200 matching questions about the movie The Odyssey.docxI need help with 200 matching questions about the movie The Odyssey.docx
I need help with 200 matching questions about the movie The Odyssey.docx
 
I need essay around 500 to 600 word At least 2 sources anything .docx
I need essay around 500 to 600 word At least 2 sources anything .docxI need essay around 500 to 600 word At least 2 sources anything .docx
I need essay around 500 to 600 word At least 2 sources anything .docx
 
I need change answer number 1 and ,  Second  The exhibits need to be.docx
I need change answer number 1 and ,  Second  The exhibits need to be.docxI need change answer number 1 and ,  Second  The exhibits need to be.docx
I need change answer number 1 and ,  Second  The exhibits need to be.docx
 
I need at least a 6 page paper apa format .  Please follow the rubic.docx
I need at least a 6 page paper apa format .  Please follow the rubic.docxI need at least a 6 page paper apa format .  Please follow the rubic.docx
I need at least a 6 page paper apa format .  Please follow the rubic.docx
 
I need APA style, 1-2 pages, 12 pt Time New Roman.Thank You in Adv.docx
I need APA style, 1-2 pages, 12 pt Time New Roman.Thank You in Adv.docxI need APA style, 1-2 pages, 12 pt Time New Roman.Thank You in Adv.docx
I need APA style, 1-2 pages, 12 pt Time New Roman.Thank You in Adv.docx
 
I need at least a 10 page paper. Apa format following with a sample .docx
I need at least a 10 page paper. Apa format following with a sample .docxI need at least a 10 page paper. Apa format following with a sample .docx
I need at least a 10 page paper. Apa format following with a sample .docx
 
I need an origanal term paper explaining how the role of so called.docx
I need an origanal term paper explaining how the role of so called.docxI need an origanal term paper explaining how the role of so called.docx
I need an origanal term paper explaining how the role of so called.docx
 
i need an explanation of two Tai Chi postures. Like how to do it. Fo.docx
i need an explanation of two Tai Chi postures. Like how to do it. Fo.docxi need an explanation of two Tai Chi postures. Like how to do it. Fo.docx
i need an explanation of two Tai Chi postures. Like how to do it. Fo.docx
 
I need an expert writer and someone major in Econresearcher to Help.docx
I need an expert writer and someone major in Econresearcher to Help.docxI need an expert writer and someone major in Econresearcher to Help.docx
I need an expert writer and someone major in Econresearcher to Help.docx
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Recently uploaded (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 

I have the attached copy of the assignment description. And here is .docx

  • 1. I have the attached copy of the assignment description. And here is the scripts. /* Database Systems, 9th Ed., Coronel/MOrris/Rob */ /* Type of SQL : MySQL */ CREATE SCHEMA TINY_VIDEO; USE TINY_VIDEO; /*Create table price*/ CREATE TABLE price (price_id INTEGER PRIMARY KEY AUTO_INCREMENT, description VARCHAR(20) NOT NULL, rental_fee DECIMAL(5,2), daily_late_fee DECIMAL(5,2)); /*Insert data into price*/
  • 2. INSERT INTO price VALUES(1,'Standard',2.5,1); INSERT INTO price VALUES(2,'New Release',4.0,3); INSERT INTO price VALUES(3,'Discount',2.0,1); INSERT INTO price VALUES(4,'Weekly Special',1.5,.5); /*Create table movie*/ CREATE TABLE movie (movie_id INTEGER PRIMARY KEY AUTO_INCREMENT, title VARCHAR(75) NOT NULL, year_released INTEGER, cost DECIMAL(5,2), genre VARCHAR(50), price_id INTEGER, FOREIGN KEY(price_id) REFERENCES price(price_id)); /*Insert data into movie*/
  • 3. INSERT INTO movie VALUES(1234,'The Cesar Family Christmas',2007,39.95,'FAMILY',2); INSERT INTO movie VALUES(1235,'Smokey Mountain Wildlife',2004,59.95,'ACTION',3); INSERT INTO movie VALUES(1236,'Richard Goodhope',2008,59.95,'DRAMA',2); INSERT INTO movie VALUES(1237,'Beatnik Fever',2007,29.95,'COMEDY',2); INSERT INTO movie VALUES(1238,'Constant Companion',2008,89.95,'DRAMA',NULL); INSERT INTO movie VALUES(1239,'Where Hope Dies',1998,25.49,'DRAMA',3); INSERT INTO movie VALUES(1245,'Time to Burn',2006,45.49,'ACTION',3); INSERT INTO movie VALUES(1246,'What He Doesn''t Know',2006,58.29,'COMEDY',1); /*Create table video*/ CREATE TABLE video (video_id INTEGER PRIMARY KEY AUTO_INCREMENT, purchase_date DATE,
  • 4. movie_id INTEGER, FOREIGN KEY(movie_id) REFERENCES movie(movie_id)); /*Insert data into video*/ INSERT INTO video VALUES(54321,'2008-06-18',1234); INSERT INTO video VALUES(54324,'2008-06-18',1234); INSERT INTO video VALUES(54325,'2008-06-18',1234); INSERT INTO video VALUES(34341,'2007-01-22',1235); INSERT INTO video VALUES(34342,'2007-01-22',1235); INSERT INTO video VALUES(34366,'2009-03-02',1236); INSERT INTO video VALUES(34367,'2009-03-02',1236); INSERT INTO video VALUES(34368,'2009-03-02',1236); INSERT INTO video VALUES(34369,'2009-03-02',1236); INSERT INTO video VALUES(44392,'2008-10-21',1237); INSERT INTO video VALUES(44397,'2008-10-21',1237); INSERT INTO video VALUES(59237,'2009-02-14',1237); INSERT INTO video VALUES(61388,'2007-01-25',1239); INSERT INTO video VALUES(61353,'2006-01-28',1245);
  • 5. INSERT INTO video VALUES(61354,'2006-01-28',1245); INSERT INTO video VALUES(61367,'2008-07-30',1246); INSERT INTO video VALUES(61369,'2008-07-30',1246); /*Create table membership*/ CREATE TABLE membership (membership_id INTEGER PRIMARY KEY AUTO_INCREMENT, first_name VARCHAR(30) NOT NULL, last_name VARCHAR(30) NOT NULL, street VARCHAR(120), city VARCHAR(50), state VARCHAR(2), zip VARCHAR(5), balance DECIMAL(10,2)); /*Insert data into membership*/ INSERT INTO membership VALUES(102,'Tami','Dawson','2632
  • 6. 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 145th 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','Greenville','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 Melvin Avenue','Heiskell','TN','37754',3);
  • 7. INSERT INTO membership VALUES(113,'Minnie','Gonzales','124 6th Street West','Williston','ND','58801',0); /*Create table rental*/ CREATE TABLE rental (rental_id INTEGER PRIMARY KEY AUTO_INCREMENT, rental_date DATE, membership_id INTEGER, FOREIGN KEY(membership_id) REFERENCES membership(membership_id)); /*Insert data into rental*/ INSERT INTO rental VALUES(1001,'2009-03-01',103); INSERT INTO rental VALUES(1002,'2009-03-01',105); INSERT INTO rental VALUES(1003,'2009-03-02',102); INSERT INTO rental VALUES(1004,'2009-03-02',110); INSERT INTO rental VALUES(1005,'2009-03-02',111); INSERT INTO rental VALUES(1006,'2009-03-02',107);
  • 8. INSERT INTO rental VALUES(1007,'2009-03-02',104); INSERT INTO rental VALUES(1008,'2009-03-03',105); INSERT INTO rental VALUES(1009,'2009-03-03',111); /*Create table detailrental*/ CREATE TABLE detail_rental (rental_id INTEGER, video_id INTEGER, fee DECIMAL(5,2), due_date DATE, return_date DATE, daily_late_fee DECIMAL(5,2), PRIMARY KEY(rental_id, video_id), FOREIGN KEY(rental_id) REFERENCES rental(rental_id), FOREIGN KEY(video_id) REFERENCES video(video_id)); /*Insert data into dailyrental*/
  • 9. INSERT INTO detail_rental VALUES(1001,34342,2,'2009-03- 04','2009-03-02',1); INSERT INTO detail_rental VALUES(1001,61353,2,'2009-03- 04','2009-03-03',1); INSERT INTO detail_rental VALUES(1002,59237,3.5,'2009-03- 04','2009-03-04',3); INSERT INTO detail_rental VALUES(1003,54325,3.5,'2009-03- 04','2009-03-09',3); INSERT INTO detail_rental VALUES(1003,61369,2,'2009-03- 06','2009-03-09',1); INSERT INTO detail_rental VALUES(1003,61388,0,'2009-03- 06','2009-03-09',1); INSERT INTO detail_rental VALUES(1004,44392,3.5,'2009-03- 05','2009-03-07',3); INSERT INTO detail_rental VALUES(1004,34367,3.5,'2009-03- 05','2009-03-07',3); INSERT INTO detail_rental VALUES(1004,34341,2,'2009-03- 07','2009-03-07',1); INSERT INTO detail_rental VALUES(1005,34342,2,'2009-03- 07','2009-03-05',1); INSERT INTO detail_rental VALUES(1005,44397,3.5,'2009-03- 05','2009-03-05',3); INSERT INTO detail_rental VALUES(1006,34366,3.5,'2009-03- 05','2009-03-04',3);
  • 10. INSERT INTO detail_rental VALUES(1006,61367,2,'2009-03- 07',NULL,1); INSERT INTO detail_rental VALUES(1007,34368,3.5,'2009-03- 05',NULL,3); INSERT INTO detail_rental VALUES(1008,34369,3.5,'2009-03- 05','2009-03-05',3); INSERT INTO detail_rental VALUES(1009,54324,3.5,'2009-03- 05',NULL,3); INSERT INTO detail_rental VALUES(1001,34366,3.5,'2009-03- 04','2009-03-02',3);