Database Project
Database Project
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]
[S.M.Raju
1416463]
[Md. Azgar Hossain
1413423]
Supervised by
Dr. Mior Nasir Mior Nazri
Preliminary Report
1.Introduction:
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
Md.Shariful Islam
Programmer
S. M. Raju
Database
Administrator
Md.Azgar 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
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
4. Monthly Report
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
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)
);
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)
);
(
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)
);
'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);
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 v.title,v.language, v.rating, m.actor1, m.actress1, v.releaseYear
from movie m,videoLibrary v where v.barcode=m.barcode and
v.releaseYear > '01/jan/2007' order by v.releaseYear;
2. select c.Fname,c.Lname,c.phoneNo,c.street,c.city
,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 v.title,v.type, v.language, v.rating, m.actor1, m.actress1 from
movie m,videoLibrary v where v.barcode=m.barcode and
v.language='English';
3. Strategic queries
1. select v.title, count(r.customer_id) as NO_of_times_rented from rental
r,videocopy vc, videoLibrary v where vc.disk_no=r.disk_no and
vc.barcode=v.barcode group by v.title;
2. select v.title, sum(r.payment) as Total_earned from rental r,
videocopy vc, videoLibrary v whevcre vc.disk_no=r.disk_no and vc.barcode
=v.barcode group By v.title;
3. select v.title , count(vc.barcode) As availableCopy from videocopy vc,
videoLibrary v where vc.barcode=v.barcode and vc.status='Available' group
by v.title;
4. DBA queries
1. create view registered_by as select c.fname, c.Lname,c.phoneNo,
c.street,c.city , s.fname 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
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