Project Report Car Rental System: Submitted TO
Project Report Car Rental System: Submitted TO
SUBMITTED TO:-
Mr. Deepak Kumar Verma
M.Tech. (Computer Science and
Engineering)
Assistant Professor, Department of
Computer Science and Engineering and
Technology, C S J M University Kanpur
TEAM MEMBERS:-
RAHUL SHARMA (ROLL NO: - 25)
AVINASH TRIPATHI (ROLL NO: - 45)
2) REQUIREMENTS:-
a)
Each car present in Car Agency must have
an individual Car Id and must belong to
any one of the car type.
b) Cust
omers have choice to select any car they are
interested in, if it is available.
c)At any instance of time numbers of cars must not
be equal to ZERO.
d) Bill
should be automatically generated as soon as
customer submits the car.
e) Auto
decrement and increment in the stock of cars must
be done according to the booking and returning of
any car.
f) Details submitted by customer must be valid and
age should be checked as priority (greater than 18).
ER DIAGRAM
Table Schemas
Our project consists of database with 6 tables. Each table with details
of various fields like customer details, car type details, booking
details, billing details etc.
1) billing_details:-
DDL:-
2) booking_details:-
DDL:-
DDL:-
DDL:-
create table customer
( cust_id integer(11) auto_increment primary key,
dl_no varchar(10) not null,
first_name varchar(10) not null,
last_name varchar(10) not null,
dob date not null,
address varchar(255) not null,
city varchar(255) not null,
state varchar(255) not null,
contact_no char(10) not null,
password varchar(255) not null,
email_id varchar(255) not null,
b_status integer(1)
);
6) admin:-
DDL:-
1) auto_bill_generate trigger:-
Admin login page asks for the username and password for log
in. Admin can enter by giving details and could make changes
to database.
Customer profile page displays the list of car he has booked
on the home page. He can choose the options from left
navigation bar to update his information book a new car or
return the car that he has booked.
Admin panel has the full control over the database. The
navigation bar is given on the left side from which user can
select the various options. He can add a new car, update
the car info. Also he can view various reports that can be
generated by the database. The reports are given in the
dropdown list of the heading REPORTS.
For adding a new car, admin has to give the
Registeration_id, name, type, image, price and status of the
car. The car would be added and displayed as available on
the car list page.
Reports
1) View all customers:-
Admin can view all the cars in the agency, their details
and status of availability.
SQL:-
select * from car_detail;
3) View booking details:-
Admin can see the list of cars that are booked at any
instance. The cust_id gives the customer details and
car_id provides the car details that have been booked.
SQL:-
select * from booking_details;
4) View bills report(by car_id):-
SQL:-
SQL:-
select * from
billing_details,booking_details,car_detail,car_type
where
billing_details.booking_id=booking_details.booking_id
and booking_details.car_id=car_detail.car_id and
car_detail.car_id=car_type.car_id and
car_type.car_type_id=1;
Admin can view the car that has been booked the
maximum no. of times. Also the decreasing order of the
booking frequency of the particular car.
SQL:-
select car_id,count(*) from booking_details group by
car_id order by 2 desc;
_._._.__._._.__._._.__._._.__._._.__._._.__._._.__._._._._._._
REFERENECES
Database System Concepts by Silberschatz Korth
Sudarshan.
W3Schools website(www.w3schools.com)
internet