0% found this document useful (0 votes)
60 views29 pages

Final-Project Report DB PDF

1. The document describes a preliminary report for developing an online tour and travel reservation system. 2. It includes details of the project team, proposed features of the system, entity relationship diagram, logical and physical database designs, and sample data and queries. 3. The key aspects covered are registration of users and admins, package selection, booking, payment, and admin functions like updating booking status and packages.

Uploaded by

Intiser Ahmed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views29 pages

Final-Project Report DB PDF

1. The document describes a preliminary report for developing an online tour and travel reservation system. 2. It includes details of the project team, proposed features of the system, entity relationship diagram, logical and physical database designs, and sample data and queries. 3. The key aspects covered are registration of users and admins, package selection, booking, payment, and admin functions like updating booking status and packages.

Uploaded by

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

KULLIYYAH OF INFORMATION & COMMUNICATION TECHNOLOGY

INFO 1103 DATABASE SYSTEM


SEMESTER 1, 2019/2020
SECTION 2

PROJECT 1: PRELIMINARY REPORT FOR


ONLINE TOUR AND TRAVEL
RESERVATION SYSTEM

PREPARED BY:
Group D

NAME MATRIC NO. PARTICIPATION

Mahin Islam 1724486 100%

Saif Al Faied 1828615 100%

Md Borhan Uddin 1822665 100%

Md Ferdous Ahmed Khan 1825869 100%

Supervised by
Dr. Lili Marziana Abdullah

DUE
13 Nov 2019
Introduction:
The team is working to develop a company or individual who plan the travel itinerary for others
and facilitate them a complete tour plan and guideline related with travel goals. Our proposed
system is named Tour and Travel reservation system. The vital goal of the developing this system
is to make a tour plan reservation easier. Also, working to minimize narrowness on existing
system such as lack of information, security of payment through online and so on. The tour and
travel reservation system will enhance the high security of personal information of register
travelers and improve customer service as well as increase customer satisfaction. In addition, the
team is working on to reduce development cost. The project development estimated cost is
RM14000 roughly and duration of development would be 6 months.

The project team is leaded by project manager and the manager will manage financial source at a
time. The other team members are involved with three different categories of system development
which are system analyst, analyst programmer, database administrator.

Project Team Organization:


Business Transaction:
1. Register user
2. Package selection
3. Package booking
4. Payment trans.
5. Print receipt
6. Admin registration
7. Update booking status
8. Package update
Screen Design:
1. User Register Screen

2. Admin register
3. Package booking

4. Payment transection
5. Package add\update.
Documentation:
1. Receipt
2. Package View
ERD

Users Bookings
User_id Create Booking_id
1..1 1..*
U_Fname No_travelers
U_Lname Check_in
U_Email Check_out
Password Cost
Street 1..* Pack_id
City User_id
State Approval
1..1 Postcode Admin_id
Country

0..*

Selected for
Admin Approved
1..* 1..1
Admin_id
A_Fname Package
A_Lname 1..1 Create 1..*
A_ Email Pack_id
Pass Pack_name
Passport Dest_to
type Dest_from
Pack_type
Pack_price
Admin_id
Make

Payment

Payment_id
Booking_id
1..* User_id
Amount
Logical Database design

• Users (User_id, U_Fname, U_Lname, U_Email, Password, Street, City, Postcode,


Country) Primary key- User_id
• Admin (Admin_id,A_Fname, A_Lname,A_Email, Pass, Passport, Type) Primary key –
Admin_id
• Bookings (Booking_id, No_travelers, Check_in, Check_out, Cost, Pack_id, User_id,
Approval, Admin_id) Primary Key – Booking_id. Foreign Key – Pack_id, User_id,
Admin_id
• Package (Pack_id, Pack_name, Dest_to, Dest_from, Pack_type, Pack_price, Admin_id)
Primary Key – Pack_id. Foreign Key – Admin_id
• Payment ( Payment_id, Booking_id, User_id, Amount) Primary Key – Paymnent_id .
Foreign Key – Booking_id, User_id

Physical Database Design


Create table Users (User_id varchar (6) Not Null, U_Fname varchar (25) Not Null, U_Lname
varchar (25) Not Null, U_Email varchar (25) Not Null, Street varchar(30), City varchar (10),
State varchar (10), Postcode varchar (8), Country varchar (10), Password varchar (25), Primary
key (User_id));
Create table Admin (Admin_id varchar (6) Not Null,A _Fname varchar (25) Not Null, A_Lname
varchar (25) Not Null, A_Email varchar (25) Not Null,Passport varchar (10), Pass varchar (10)
Not null, Type varchar (10) Not null, Primary key (Admin_id));
Create table Package ( Pack_id varchar (6) Not null, Pack_Name varchar (25), Dest_from
varchar (20), Dest_to varchar (20),Pack_type varchar (10), Pack_price number (5), Admin_id
varchar(6) Not null, Primary key (Pack_id), Foreign key (Admin_id) references
Admin(Admin_id));
Create table Bookings (Booking_id varchar(6) Not null,Check_in date, Check_out date, Cost
number(6,2),No_travelers number(6), Approval varchar (10),Admin_id varchar(6) not
null,User_id varchar(6) not null, Pack_id varchar (6) Not null, Primary key (Booking_id),
Foreign key (Admin_id) references Admin(Admin_id), Foreign key (User_id) references
Users(Users_id), Foreign key (Pack_id) references Package(Pack_id));
Create table payment (Payment_id varchar (6) Not null, User_id varchar(6) not null,Booking_id
varchar (6) not null, Amount number (6,2), primary key(Payment_id), Foreign key (User_id)
references Users(Users_id), Foreign key (Booking_id) references Bookings (Booking_id));
Insert into Users values (‘B110’, ‘Mohammad’, ‘Saif’, ‘[email protected]’, ‘s1289’, ‘32g’,
‘JB’, ‘Johor’, ‘79100’, ‘Malaysia’);
Insert into Users values (‘B210’, ‘Borhan’, ‘Uddin’, ‘[email protected]’, ‘uddinmd12’,
‘puchong’, ‘kl’, ‘kl’, ‘79110’, ‘Malaysia’);
Insert into Users values (‘B310’, ‘Ferdous’, ‘Ahmed’, ‘[email protected]’, ‘Ferdous000’,
‘12/1’, ‘Gombak’, ‘Selangor’, ‘22300’, ‘Malaysia’);
Insert into Users values (‘B410’, ‘MD’, ‘Raihan’, ‘[email protected]’, ‘raihan112’, ‘12/1’,
‘Gombak’, ‘Selangor’, ‘12500’, ‘Malaysia’);
Insert into Users values (‘B510’, ‘Hasibur’, ‘rahman’, ‘[email protected]’, ‘Hasib32’, ‘62/1’,
‘Seremban’, ‘Sembilan’, ‘22656’, ‘Malaysia’);
Insert into Admin values (‘111’, ‘rafi’,
‘mirza’,’[email protected]’,’1234567’,’b123456’,’manager’);
Insert into Admin values (‘121’, ‘abdur’,
‘rahman’,’[email protected]’,’abc123’,’b123236’,’manager’);
Insert into Admin values (‘131’, ‘Sajibur’,
‘rahman’,’[email protected]’,’34567k’,’a255426’,’Employee’);
Insert into Admin values (‘151’,’Ribat ‘,’fahim’,‘[email protected]’,’ajjhjhfj’,’B0434223’,
‘A_manager’);
Insert into Admin values (‘141’,’Mahin’,’Islam’,’[email protected]’,‘874gr33’,’s6487326’,’
Employee’);
Insert into Package values (‘1’,’Holiday’,’Kl’,’Genting’,’Single Day’,’100’,’111’,’B110’);
Insert into Package values (‘2’,’Holiday2’,’Kl’,’Melaka’,’Single Day’,’150’,’121’,’B334’);
Insert into Package values (‘3’,’Vacation Go’,’kl’,’Penang’,’2 day’,’250’,’121’,’B120’);
Insert into Package values (‘4’,’Vacation Far’,’kl’,’Lanagkawi’,’3 day’,’500’,’141’,’B334’);
Insert into Package values (‘5’,’Island View’,’kl’,’Pangkor’,’2 day’,’250’,’151’,’B310’);
Insert into Bookings Values (‘1’,’12-nov-19’, ’13-nov-19’,500,1,’Finished’,’121’,’B110’,’5’);
Insert into Bookings Values (‘2’,’14-nov-19’, ’14-nov-19’,400,4,’Finished’,’131’,’B210’,’1’);
Insert into Bookings Values (‘3’,’18-nov-19’, ’18-nov-19’,500,5,’Finished’,’121’,’B110’,’1’);
Insert into Bookings Values (‘4’,’21-nov-19’, ’24-nov-19’,1000,2,’Finished’,’151’,’B334’,’4’);
Insert into Payment values (‘1’,’1’,’B110’,530);
Insert into Payment values (‘2’,’2’,’B120’,550);
Insert into Payment values (‘3’,’3’,’B120’,650);
Insert into Payment values (‘4’,’4’,’B334’,1250);

Basic Queries:

SQL> Alter table Package Add Discount number (3,2);

Table altered.

2. drop the column name discount


SQL> alter table package Drop Column Discount;

Table altered.

3. update the package price 200 where package id is 2

SQL> Update Package Set PACK_Price='200' Where Pack_id ='2';

1 row updated.

4. list the booking details

SQL> Select * from Bookings;

BOOKIN CHECK_IN CHECK_OUT COST NO_TRAVELERS APPROVAL ADMIN_


USER_I
------ --------- --------- ---------- ------------ ---------- ------ ------
PACK_I
------
1 12-NOV-19 13-NOV-19 500 1 Finished 121 B110
5

2 14-NOV-19 14-NOV-19 400 4 Finished 131 B210


1

3 18-NOV-19 18-NOV-19 500 5 Finished 131 B120


1

BOOKIN CHECK_IN CHECK_OUT COST NO_TRAVELERS APPROVAL ADMIN_


USER_I
------ --------- --------- ---------- ------------ ---------- ------ ------
PACK_I
------
4 21-NOV-19 24-NOV-19 1000 2 Finished 151 B334
4

5.list all the packages where package price is more than 2000

SQL> Select * from package where Pack_Price>200;

PACK_I PACK_NAME DEST_FROM DEST_TO


------ ------------------------- -------------------- --------------------
PACK_TYPE PACK_PRICE ADMIN_ USER_I
---------- ---------- ------ ------
3 Vacation Go Kl Penang
2 Day 250 121 B120
4 Vacation Far Kl Langkawi
3 Day 500 141 B334

5 Island View Kl Pangkor


2 Day 250 151 B310

PACK_I PACK_NAME DEST_FROM DEST_TO


------ ------------------------- -------------------- --------------------
PACK_TYPE PACK_PRICE ADMIN_ USER_I
---------- ---------- ------ ------
6 Holiday3 Kl Perhantian
2 day 350 121 B334

Operational
1. List all the users sorted by user id

SQL> Select * from Users Order By User_id;

USER_I U_FNAME U_LNAME


------ ------------------------- -------------------------
U_EMAIL STREET CITY STATE
------------------------- ------------------------------ ---------- ----------
POSTCODE COUNTRY PASSWORD
-------- ---------- -------------------------
B110 Mohammad Saif
[email protected] s1289 32g JB
Johor 79100 Malaysia

B120 Hasibur rahman


[email protected] hasib32 62/1 Seremban
Sembilan 22656 Malaysia

USER_I U_FNAME U_LNAME


------ ------------------------- -------------------------
U_EMAIL STREET CITY STATE
------------------------- ------------------------------ ---------- ----------
POSTCODE COUNTRY PASSWORD
-------- ---------- -------------------------

B210 Borhan Uddin


[email protected] uddinmd12 puchong kl
kl 79110 Malaysia

B310 Ferdous Ahmed


[email protected] Ferdous000 12/1 Gombak

USER_I U_FNAME U_LNAME


------ ------------------------- -------------------------
U_EMAIL STREET CITY STATE
------------------------- ------------------------------ ---------- ----------
POSTCODE COUNTRY PASSWORD
-------- ---------- -------------------------
selangor 22300 Malaysia
B334 MD Raihan
[email protected] raihan112 12/1 Gombak
Selangor 21500 Malaysia

2.List all the admin which first name is 'Abdur'

SQL> Select * from Admin where A_Fname like 'Abdur';

ADMIN_ A_FNAME A_LNAME


------ ------------------------- -------------------------
A_EMAIL PASS PASSPORT TYPE
------------------------- --------------- ---------- ----------
121 Abdur rahman
[email protected] abc123 b123236 manager

3. List all the paid payment where ammont is less than 600.

SQL> Select * from Payment where Amount<600;

PAYMEN BOOKIN USER_I AMOUNT


------ ------ ------ ----------
1 1 B110 530
2 2 B120 550

4. Show total amount paid by users.

SQL> select Sum(Amount) AS Total From Payment;


TOTAL
----------
2980

5. List top customers who has paid maximam amount.

SQL> select U_Fname,U_Lname From Users,Payment Where Users.User_id=Payment.User_id


and Amount = (select Max(Amount) from Payment);

U_FNAME U_LNAME
------------------------- -------------------------
MD Raihan

Strategic

1. Select all package id which is not booked by customer.

SQL> Select Pack_id from Package Minus Select Pack_id from Bookings;

PACK_I
------
2
3
6
2. Select all package name which are booked in the month of November.

SQL> select pack_name From Package,Bookings where Package.pack_id=Bookings.Pack_id


and Bookings.Check_in Between '1-nov-2019' AND '30-nov-2019';

PACK_NAME
-------------------------
Holiday
Holiday
Vacation Far
Island View

3. List user id and first user name who has paid greater than 500.

SQL> Select Users.User_id,U_Fname from bookings,Users where


Bookings.User_id=users.User_id and Cost>500;

USER_I U_FNAME
------ -------------------------
B334 MD

4. List the admins who approved the package which price is more than 600

SQL> Select Bookings.Admin_id From Bookings,Payment where


Bookings.Booking_id=payment.Booking_id and payment.Amount>600;

ADMIN_
------
131
151

View
1. Create a view of customer which is gombak.

SQL> Create View G_user AS


2 Select User_id from Users where city='Gombak';

View created.

2. Create a complete view of the user.

SQL> Create View B_user AS


2 Select * From users;

View created.

3. Create a view of admin panel where admin id '111' is not included.

SQL> Create View F_user AS


2 select Admin_id from Admin where Admin_id not like '111';

View created.

SQL> Spool Off;

RECORD LISTING
1. SQL> Select * from Users;

USER_I U_FNAME U_LNAME


------ ------------------------- -------------------------
U_EMAIL STREET CITY STATE
------------------------- ------------------------------ ---------- ----------
POSTCODE COUNTRY PASSWORD
-------- ---------- -------------------------
B110 Mohammad Saif
[email protected] s1289 32g JB
Johor 79100 Malaysia

B210 Borhan Uddin


[email protected] uddinmd12 puchong kl
kl 79110 Malaysia
USER_I U_FNAME U_LNAME
------ ------------------------- -------------------------
U_EMAIL STREET CITY STATE
------------------------- ------------------------------ ---------- ----------
POSTCODE COUNTRY PASSWORD
-------- ---------- -------------------------

B310 Ferdous Ahmed


[email protected] Ferdous000 12/1 Gombak
selangor 22300 Malaysia
B334 MD Raihan
[email protected] raihan112 12/1 Gombak

USER_I U_FNAME U_LNAME


------ ------------------------- -------------------------
U_EMAIL STREET CITY STATE
------------------------- ------------------------------ ---------- ----------
POSTCODE COUNTRY PASSWORD
-------- ---------- -------------------------
Selangor 21500 Malaysia

B120 Hasibur rahman


[email protected] hasib32 62/1 Seremban
Sembilan 22656 Malaysia

2. SQL> Select * from Admin;

ADMIN_ A_FNAME A_LNAME


------ ------------------------- -------------------------
A_EMAIL PASS PASSPORT TYPE
------------------------- --------------- ---------- ----------
111 rafi mirza
[email protected] 1234567 b123456 manager
121 Abdur rahman
[email protected] abc123 b123236 manager

131 Sajibur rahman


[email protected] 34567k a255426 Employee

ADMIN_ A_FNAME A_LNAME


------ ------------------------- -------------------------
A_EMAIL PASS PASSPORT TYPE
------------------------- --------------- ---------- ----------
151 Ribat fahim
[email protected] ajjhjhfj B0434223 A_manager

141 Mahin Islam


[email protected] 874gr33 s6487326 Employee

3. SQL> select * from Package;

PACK_I PACK_NAME DEST_FROM DEST_TO


------ ------------------------- -------------------- --------------------
PACK_TYPE PACK_PRICE ADMIN_ USER_I
---------- ---------- ------ ------
1 Holiday Kl Genting
Single Day 100 111 B110

2 Holiday2 Kl Melaka
Single Day 150 121 B334

3 Vacation Go Kl Penang
2 Day 250 121 B120

PACK_I PACK_NAME DEST_FROM DEST_TO


------ ------------------------- -------------------- --------------------
PACK_TYPE PACK_PRICE ADMIN_ USER_I
---------- ---------- ------ ------
4 Vacation Far Kl Langkawi
3 Day 500 141 B334

5 Island View Kl Pangkor


2 Day 250 151 B310

6 Holiday3 Kl Perhantian
2 day 350 121 B334

6 rows selected.
4. SQL> Select * from Bookings;

BOOKIN CHECK_IN CHECK_OUT COST NO_TRAVELERS APPROVAL


ADMIN_ USER_I
------ --------- --------- ---------- ------------ ---------- ------ ------
PACK_I
------
1 12-NOV-19 13-NOV-19 500 1 Finished 121 B110
5

2 14-NOV-19 14-NOV-19 400 4 Finished 131 B210


1

3 18-NOV-19 18-NOV-19 500 5 Finished 131 B120


1

BOOKIN CHECK_IN CHECK_OUT COST NO_TRAVELERS APPROVAL


ADMIN_ USER_I
------ --------- --------- ---------- ------------ ---------- ------ ------
PACK_I
------
4 21-NOV-19 24-NOV-19 1000 2 Finished 151 B334
4
SQL> Select * from Payment;

PAYMEN BOOKIN USER_I AMOUNT


------ ------ ------ ----------
1 1 B110 530
2 2 B120 550
3 3 B120 650
4 4 B334 1250

SQL> Spool Off;


Name: Mahin Islam
Matric no: 1724486
Task: creating tables.
Problems: Faced Parenthesis problems
Learned: About the use of different data type.
Name: Saif Al Faied
Matric no: 1828615
Task: ERD & Table Creating
Problems: Matching Relation
Learned: About the entity relation.
Name: Md Borhan Uddin
Matric no: 1822665
Task: Queries & ERD
Problems: writing error & logical relation
Learned: About the different relation and logical solution
Name: Md Ferdous Ahmed Khan
Matric no: 1825869
Task: Table & creating queries
Problems: Difficulty in creating question
Learned: solving queries.

You might also like