KULLIYYAH OF INFORMATION AND
COMMUNICATION TECHNOLOGY
DEPARTMENT OF INFORMATION SYSTEMS
INFO 1102 Database System 1
Semester 1 2015/16
Preliminary Report
[VIDEO RENTAL SYSTEM]
Section : [3]
Team Name: [IT Assassin]
Group Members
[Md. Al Amin Ashik
1326493]
[Md. Shariful Islam
1412813]
[[Link]
1416463]
[Md. Azgar Hossain
1413423]
Supervised by
Dr. Mior Nasir Mior Nazri
Preliminary Report
[Link]:
Video Rental System application is specially developed for shops Video
City which sells and rents video files for customers and collect money on
daily basis. We developed this project by considering various issues in
existing manual system followed by these shops. But this system is also
works by rent and view the all Video available to rent. At this time, this
system was very interesting to the other shops because they did not allow the
pirated Video. In this case the user or member was easy to rent or register
because of this system. And it also help the Video store to make their shop
or business more efficient in terms of Rent.
Video Rental System provides customer to view video available and view
the trailer of the movies. The purpose of this Video Rental System is simply
Renting available movies, dramas, musics. Its significances uses will able
the user to have an access to ready to view movies.
When a new customer visits the system they should be able to watch movie
trailers and their reviews and ratings, search movies and browse through
some categories. However, in order to rent a movie or cd he/she has to
subscribe for membership. The customer should be able to receive the movie
or cd. In addition, they might be able to see their history of renting the cds
and their overall total expenses.
SCOPE AND LIMITATION
The study limited to describe the uses of the Video Rental System in
renting the Movies available. It is also show the daily, weekly,
monthly and also the yearly income of the Video Rental System.
Moreover, it also delimited to describe how do Video rental system
works and what is the uses of this system.
Project Team Organaization:
Project Manager
Md. Alamin Ashik
System Analyst
[Link] Islam
Programmer
S. M. Raju
Database
Administrator
[Link] Hossain
2. Business Transaction:
1. Register Customer
2. Register Employee
3. Register Video
4. Customer Renting Video
5. Customer Return Video
6. Accept Payment
7. Process Overdue Video
8. Process Lost Video
9. Print Customer Invoice
10. Print Overdue Report
11. Print Daily/Weekly/Monthly Rental
3. Screen Design
Customer Registration Screen
Employee Registration Screen
Video Registration Screen
Screen for renting video to customer
Screen for rental payment and overdue payment
Screen for printing reports
4. Document / Report design
1. Overdue Report
OVERDUE REPORT
Customer Copy
Date:
Customer Name :
Customer No:
Overdue Item 1: ................. Overdue date 1...........
2: .................
2...........
3: ..................
3...........
4: ..................
4...........
RM:
RM:
RM:
RM:
signature
2. Weekly Report
3. Daily Report
Daily Rental REPORT
Customer Copy
Date:
Customer Name :
Customer No:
Amount
Movie: .............. X ................=
Drama: .............. X.................=
Music: ...... .........X.................=
TOTAL =
signature
4. Monthly Report
Monthly Rental Report
Date:
Total Rented Item:
Total returend Item:
Item to be returned:
Overdued Item :
Movie rented =
Drama rented.=
Music: rented =
signature
5. Customer Invoice
Customer Invoice
Receipt No: 1255465
Date:
Customer Name:
Customer ID :
Item returned:
Amount
1.
2.
3.
4.
5.
Total Overdue
Total :
signature
5 .Conceptual Database Design
6. Logical Database Design
Customer( Customer_id, Title, Fname, Lname, PhoneNo, RegistrationDate, DOB,
Street, City, State, Zip)
Primary Key Customer_id
Employee( Staff_id, Title, Fname, Lname, PhoneNo, RegistrationDate, DOB, Street,
City, State, Zip)
Primary Key Staff_id
Rental( Rent_id,RentDate, DueDate, ReturnDate , Customer_id, Staff_id, Disk_id ,
Amount)
Primary Key Rent_id
Foreign Key Customer_id reference Customer(Customer_id)
Foreign Key Staff_id references Employee(Staff_id)
Foreign Key Disk_id references VideoCopy(Disk_id)
VideoCopy( Disk_id, Status, Barcode)
Primary Key Disk_id
Foreign Key Barcode references VideoLibrary(Barcode)
VideoLibrary( Barcode, Title, Type, Duration, Language, ReleaseYear, Rate)
Primary Key Barcode
Movie(Movie_id, Barcode, Title, Type, Duration, Language, ReleaseYear, Rate,
DramaName, DirectorName, ProducerName, Actor1, Actor2, Actress1, Actress2)
Praimary Key Drama_id
Foreign Key Barcode references VideoLibrary(barcode)
Music(Album_no, Barcode, Title, Type, Duration, Language, ReleaseYear, Rate,
AlbumName, Singer)
Praimary Key Album_no
Foreign Key Barcode references VideoLibrary(barcode)
Drama(Drama_id, Barcode, Title, Type, Duration, Language, ReleaseYear,
Rate, DramaName, ProducerName, DirectorName, Actor1, Actor2, Actress1, Actress2)
Praimary Key Drama_id
Foreign Key Barcode references VideoLibrary(barcode)
7. Physical Database Design
Create Table Customer
(
customer_id
varchar(4) not null,
Title
char(3),
Fname
char(10),
Lname
char(10),
PhoneNo number(11),
Reg_date date,
DOB
date,
Street
varchar(10),
City
varchar(10),
State
varchar(10),
Zip
number(5),
PRIMARY KEY(customer_id)
);
Create Table Employee
(
staff_id
varchar(4) not null,
title char(3),
fname
char(10),
lname
char(10),
phoneNo number(11),
reg_date date,
dob
date,
street
varchar(10),
city
varchar(10),
state
varchar(10),
zip
number(5),
PRIMARY KEY(staff_id)
);
Create Table VideoLibrary
(
barcode
varchar(4) not null,
title
varchar(15),
type
varchar(10),
language
varchar(10),
releaseYear date,
rating
char(5),
PRIMARY KEY(barcode)
);
Create Table VideoCopy
(
disk_no
varchar(5),
barcode
varchar(4),
status
varchar(10),
PRIMARY KEY(disk_no),
FOREIGN KEY(barcode) references VideoLibrary(barcode)
);
Create Table Rental
(
rent_id
varchar(8) not null,
rentDate
date,
dueDate
date,
return_date date,
customer_id varchar(4),
staff_id
varchar(4),
disk_no
varchar(5),
payment
number(4,2),
PRIMARY KEY(rent_id),
FOREIGN KEY(staff_id) references employee(staff_id),
FOREIGN KEY(customer_id) references
customer(customer_id),
FOREIGN KEY(disk_no) references VideoCopy(disk_no)
);
Create Table Movie
(
movie_id
varchar(8) not null,
DirectorName varchar(15) not null,
ProducerName varchar(15) not null,
Actor1
varchar(15) not null,
Actor2
varchar(15),
Actress1
varchar(15) not null,
Actress2
varchar(15),
duration
varchar(8),
barcode
varchar(4),
PRIMARY KEY(movie_id),
FOREIGN KEY(barcode) references videolibrary(barcode)
);
Create Table Music
(
album_no
varchar(8) not null,
Singer
char(15) not null,
barcode
varchar(4),
PRIMARY KEY(Album_no),
FOREIGN KEY(barcode) references videolibrary(barcode)
);
Create Table Drama
(
drama_id
varchar(8) not null,
ProducerName varchar(15) not null,
DirectorName varchar(15) not null,
Actor1
varchar(15) not null,
Actor2
varchar(15),
Actress1
varchar(15) not null,
Actress2
varchar(15),
duration
varchar(8),
barcode
varchar(4),
PRIMARY KEY(drama_id),
FOREIGN KEY(barcode) references videolibrary(barcode)
);
insert into Customer
values('C786','Mr','Zany','Nami',01824201414,to_date('11/12/1995',
'dd/mm/yyyy'),to_date('17/12/2015',
'dd/mm/yyyy'),'Kaipal','Kushtia','Khulna',7001);
insert into Customer
values('C789','Mrs','Naiaa','Xree',01824245878,to_date('17/11/1991',
'dd/mm/yyyy'),to_date('11/01/2015',
'dd/mm/yyyy'),'Gombak','Gombak','Selangor',5310);
insert into Employee
values('S146','Mrs','Niami','Nuna',04477887421,to_date('11/01/1991',
'dd/mm/yyyy'),to_date('17/12/2011',
'dd/mm/yyyy'),'paja','nilas','jedaa',1424);
insert into Employee
values('S145','Mr','Noushad','Harun',01177887221,to_date('11/01/1889',
'dd/mm/yyyy'),to_date('10/11/2011',
'dd/mm/yyyy'),'Ramna','Botomul','Rushavai',8904);
insert into VideoLibrary values('B545','3
Idiots','Movie','Hindi',to_date('11/06/2007', 'dd/mm/yyyy'),'*****');
insert into VideoLibrary values('B422','Tumi
Ami','Music','Bengali',to_date('17/05/2014','dd/mm/yyyy'), '*****');
insert into VideoLibrary values('B421','Jomoj
1','Drama','Bengali',to_date('12/11/2015','dd/mm/yyyy'), '***');
insert into VideoLibrary values('B424','Naje
hal','Drama','Bengali',to_date('12/11/2014','dd/mm/yyyy'), '****');
insert into VideoLibrary values('B423','Rock n
Roll','Music','English',to_date('17/11/2015','dd/mm/yyyy'), '***');
insert into VideoLibrary values('B546','The Dark
Night','Movie','English',to_date('11/07/2012','dd/mm/yyyy'), '*****');
insert into VideoLibrary values('B547','The Star
Wars','Movie','English',to_date('17/05/1998','dd/mm/yyyy'), '*****');
insert into VideoCopy values('D1545','B545','On Rent');
insert into VideoCopy values('D1546','B545','Available');
insert into VideoCopy values('D1547','B546','On Rent');
insert into VideoCopy values('D1548','B546','Available');
insert into VideoCopy values('D1549','B547','Available');
insert into VideoCopy values('D1550','B423','Lost');
insert into Rental values('R1545547',to_date('9/12/2015',
'dd/mm/yyyy'),to_date('16/12/2015', 'dd/mm/yyyy'),to_date('18/12/2015',
'dd/mm/yyyy'),'C786','S146','D1545',14);
insert into Rental values('R1545548',to_date('10/12/2015',
'dd/mm/yyyy'),to_date('17/12/2015', 'dd/mm/yyyy'),to_date('20/12/2015',
'dd/mm/yyyy'),'C786','S145','D1547',15.2);
insert into Rental values('R1545549',to_date('11/12/2015',
'dd/mm/yyyy'),to_date('18/12/2015', 'dd/mm/yyyy'),to_date('22/12/2015',
'dd/mm/yyyy'),'C789','S146','D1545',14);
insert into Movie values('M1919245','Raju Hirani','Jantum na','Aamir
Khan','Sharman Joshi','Karina kapoor','Jenita Jj','02:47','B545');
insert into Movie values('M1919246','Christopher','Jonath
','Christian','Ladgery','Jaclin Kareey','Aron Ackwart','02:56','B546');
insert into Movie values('M1919247','Irven Kresnar','leigh Bracket','Mark
Hamil','Harrison','Carry Fisher','Agar Saro','03:26','B547');
insert into Music values('A2154450','Auppo Ran','B422');
insert into Music values('A2154451','Parvej mos','B423');
insert into Drama values('DD124578','Fuad hasra', 'Noor
nabi','Mosharrof','Ajom bay','Naila reni','nirja bindia','01:01','B421');
insert into Drama values('DD124579','Hijo Namu', 'Haiti Rw','pandey
Je','NiKoM la','Suhash B','Magir P','57:03','B424');
8. Sample queries
1. Basic queries
1. select * from videoLibrary;
insert into VideoLibrary values('B548','Mad
Max','Movie','English',to_date('15/05/2015','dd/mm/yyyy'), '*****');
2. select * from VideoCopy;
update VideoCopy set status='Available' where disk_no='D1547';
3. select * from Music;
delete from music where singer='Auppo Ran' and album_no='A2154450';
2. Operational queries
1. select [Link],[Link], [Link], m.actor1, m.actress1, [Link]
from movie m,videoLibrary v where [Link]=[Link] and
[Link] > '01/jan/2007' order by [Link];
2. select [Link],[Link],[Link],[Link],[Link]
,r.rent_Date,r.due_date from customer c, rental r where
c.customer_id=r.customer_id and r.due_date > '16-dec-15';
3. select [Link],[Link], [Link], [Link], m.actor1, m.actress1 from
movie m,videoLibrary v where [Link]=[Link] and
[Link]='English';
3. Strategic queries
1. select [Link], count(r.customer_id) as NO_of_times_rented from rental
r,videocopy vc, videoLibrary v where vc.disk_no=r.disk_no and
[Link]=[Link] group by [Link];
2. select [Link], sum([Link]) as Total_earned from rental r,
videocopy vc, videoLibrary v whevcre vc.disk_no=r.disk_no and [Link]
=[Link] group By [Link];
3. select [Link] , count([Link]) As availableCopy from videocopy vc,
videoLibrary v where [Link]=[Link] and [Link]='Available' group
by [Link];
4. DBA queries
1. create view registered_by as select [Link], [Link],[Link],
[Link],[Link] , [Link] as Reg_BY from employee s, customer c,rental r
where c.customer_Id=r.customer_Id;
9. Samaple Data
VideoCopy
Disk_id
Barcode
D1545
D1546
D1547
D1548
D1549
D1550
Status
B545
B545
B546
B546
B547
B423
On Rent
Available
On Rent
Available
Available
Lost
VideoLibrary
Barcode
Title
Type
B545
3 Idiots
Movie
B422
Tumi Ami
Music
B424
Naje hal
B423
B546
B547
Language
Hindi
ReleaseYear
Rating
11/06/2007
*****
Bengali
17/05/2014
*****
Drama
Bengali
12/11/2014
****
Rock n Roll
Music
English
17/11/2015
****
The Dark
Night
The Star Wars
Movie
English
11/07/2012
*****
Movie
English
17/05/1998
*****
Music
Album_no
Singer
Barcode
A2154450
Auppo Ran
B422
A2154451
Parvej mos
B423
Rental
Rent_id
RentDate
DueDate
Return_date Customer_id Staff_id Disk_no Payment
R1545547
9/12/2015
16/12/2015
18/12/2015
C786
S146
D1545
14
R1545548
10/12/2015
17/12/2015
20/12/2015
C786
S145
D1547
15.2
R1545549
11/12/2015
18/12/2015
22/12/2015
C789
S146
D1545
14
Movie
Movie_id
MovieName
DirectorName
ProducerName
Actor1
Actor2
Actress1
Actress2
Duration
barcode
M1919245
3 Idiots
Raju Hirani
Jantum na
Aamir
Khan
Sharman
Joshi
Karina
kapoor
Jenita Jj
02:47
B545
M1919246
The Dark
Night
Christopher
Jonath
Christian
Ladgery
Jaclin
Kareey
Aron
Ackwart
02:56
B546
M1919247
The Star
Wars
Irven
Kresnar
Leigh Bracket
Mark
Hamil
Harrison
Carry
Fisher
Agar
Saro
03:26
B547