Docsity

distributed system of data management system, Assignments of Distributed Database Management Systems

Toggle sidebar
bg1
Database Project
Course Title : Database Management System Lab
Course Code : IT 302
PROJECT TITLE: TOURS AND TRAVEL MANAGEMENT SYSTEM PROJECT
Submitted To:
Name : Mahmudur Rahman
Designation: Lecturer
Department : IT
Submitted By :
Name : Tareq Mahmud Tonmoy
Id : 1734255015
Name : Imran Hossain Shouvo
Id : 1734255010
Name : Mahbub Hasan
Id : 151010400021
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17

Partial preview of the text

Download distributed system of data management system and more Assignments Distributed Database Management Systems in PDF only on Docsity!

Database Project

Course Title : Database Management System Lab

Course Code : IT 302

PROJECT TITLE: TOURS AND TRAVEL MANAGEMENT SYSTEM PROJECT

Submitted To:

Name : Mahmudur Rahman

Designation: Lecturer

Department : IT

Submitted By :

Name : Tareq Mahmud Tonmoy Id : 1734255015 Name : Imran Hossain Shouvo Id : 1734255010 Name : Mahbub Hasan Id : 151010400021

Table of Content → Introduction to Project → Features → ER Diagram

✓ Travel Agency

✓ Customer

✓ Service

✓ Payment

→SQL Code for Creating Database Table

✓ Travel Agency Table

✓ Travel Agency Address Table

✓ Customer Table

✓ Customer Information Table

✓ Customer Address Table

✓ Service Table

✓ Travel Date Table

✓ Payment Table

→Database Table →Database

✓ Agency Name

→SQL Query

Features

ER Diagram

SQL Code for Creating Database Table

Travel Agency Table

CREATE TABLE Travel_Agency ( ID varchar(100), Name varchar(100), Email varchar(100), Contact_No varchar(100), PRIMARY key (ID) ); INSERT INTO travel_agency ( ID,Name,Email,Contact_No) VALUES( '01','T&T Travel Company','www.t&[email protected]','019xxxxxxxx'), ('02','K&k Tours & Travel','www.k&[email protected]','018xxxxxxxx'), ('03','Travelzoo Bangladesh Ltd','[email protected]','017xxxxxxxx'), ('04','Hajee Air Travels','[email protected]','015xxxxxxxx'), ('05','Dynamic Travels','[email protected]','013xxxxxxxx'), ('06','Dynamic Travels','[email protected]','016xxxxxxxx'), ('07','Heritage Air Express','[email protected]','015xxxxxxxx'), ('08','Horizon Express Limited','[email protected]','016xxxxxxxx'), ('09','Galaxy Travel Ltd','[email protected]','017xxxxxxxx'), ('10','Air Siraj Travels','[email protected]','019xxxxxxxx');

Travel Agency Address Table

CREATE TABLE Agency_Address ( ID varchar(100), Address varchar(100), City varchar (100), Pincode varchar(100), FOREIGN key (ID) REFERENCES travel_agency(ID) ); INSERT INTO agency_address( ID,Address,City,Pincode) VALUES ('01','12/9 Mirpur','Dhaka','1211'), ('02','73 Jatrabari','Dhaka','1200'), ('03','11/D Kakrail','Dhaka','1207'), ('04','sector 7 Uttara','Dhaka','1219'), ('05','3/3 Gulshan','Dhaka','1205'), ('06','Time square','New York','111'), ('07','New park Town','Manchester','09'), ('08','West club road','Chikago','1'), ('09','Old Street Road','Victoria','143'), ('10','23/1 River Park','Berlin','11');

Customer Address Table

CREATE table cust_Address ( cust_id varchar(100), Address varchar(100), City varchar(100), Pincode varchar (100), FOREIGN key (cust_id) REFERENCES customer(cust_id) ); INSERT into cust_address (cust_id,Address,City,Pincode) VALUES ('001','1/C South Rajarbag,Basaboo','Dhaka','1214'), ('002','72/f West Dhanmondi','Dhaka','1212'), ('003','63 Khilgawn Tilpapara','Dhaka','1219'), ('004','12/G Malibag Chowdhurypara','Dhaka','1201'), ('005','Notunbazar','Dhaka','1217'), ('006','USA','New York','85001'), ('007','United Kinngdom','Manchester','2121'), ('008','USA','Chikago','85223'), ('009','Canada','Victoria','998'), ('010','Germany','Berlin','1113');

Service Table

CREATE TABLE Service ( Service_id varchar(100), cust_id varchar(100), Hotel_Name varchar(100), Transport_type varchar(100), Other_details varchar(100), Destination varchar(100), PRIMARY key (Service_id), FOREIGN key (cust_id) REFERENCES customer(cust_id) ); INSERT INTO service (Service_id,cust_id,Hotel_Name,Transport_type,Other_details,Destination) VALUES ( '111','001','Grand Lake View Hotel','private Car','Unassuming hotel offering a rooftop restaurant, a gym & meeting space, plus free airport transfers','Uttara,Dhaka.'), ('222','002','Hotel Plaza Inn','private Car','Great location overall for sightseeing, recreation, dining, and getting around',' D.I.T Extension Road, Dhaka'), ('266','003','Hotel The Cox Today

','Non-Ac Bus','Contemporary hotel featuring a buffet restaurant ,a spa & an outdoor pool, plus free breakfast','CoxBazar'), ('567','004','Ocean Paradise Hotel & Resort','Ac Bus','Informal hotel offering unfussy quarters, some with balconies & bay views, plus dining & a pool.','Hotel Motel Zone, Road, Coxbazar'), ('999','005','Grand Beach Resort Coxs Bazar','Non-Ac Bus','Excellent location overall for sightseeing, recreation, dining, and getting around','Kolatoli Road Coxs Bazar'), ('445','006','Hotel Asia Residential','Bus','Good location overall for sightseeing, recreation, dining, and getting around','Main Road Barmis Market Rd, Coxs Bazar'), ('346','007','Hotel Suite Sadaf','Bus','Unassuming hotel opposite the beach featuring bay views, plus a restaurant & an outdoor pool.','Himchari/Marine Drive Road coxsbazar'), ('550','008','Royal Beach Resort','Bus','Unassuming rooms in a relaxed hotel offering complimentary Wi-Fi & breakfast, plus eclectic dining','B#64 PWD Hotel Zone ,Kolatali, Coxs Bazar'), ('123','009','Sayeman Beach Resort','Bus','Unassuming rooms in a relaxed hotel offering complimentary Wi-Fi & breakfast, plus eclectic dining','Marine Drive, Road, Coxs Bazar'), ('223','010','Coxs Inn','Bus','Excellent location overall for sightseeing, recreation, dining, and getting around','A/37, Kolatoli Road Light House, Hotel Motel zone,Coxbazar');

Travel Date Table

CREATE TABLE Travel_Date ( Service_id varchar(100), Departure varchar(100), Arrival varchar(100), FOREIGN key (Service_id) REFERENCES service(Service_id) ); INSERT INTO travel_date (Service_id,Departure,Arrival) VALUES ('111','6 January 2020','10 January 2020'), ('222','21 November 2019','24 November 2019'), ('266','29 December 2019','2 January 2020'), ('567','4 February 2020','6 February 2020'), ('999','24 December 2019','26 December 2019'), ('445','13 February 2020','15 February 2020'), ('346','5 July 2019','9 July 2019'),

Database Table

Database

Agency Name

o T&T Travel Company

o K&k Tours & Travel

o Travelzoo Bangladesh Ltd

o Hajee Air Travels

o Dynamic Travels

o Dynamic Travels

o Heritage Air Express

o Horizon Express Limited

o Galaxy Travel Ltd

o Air Siraj Travels

Transport Type

Destination

Address

Hotel Name

etc

SQL Query

➢ select

Service.service_id,Service.Hotel_Name,Service.Transport_type,Service.Other_details,

Service.Destination,Travel_Date.Departure,Travel_Date.Arrival

from Service join Travel_Date

on Service.Service_id=Travel_Date.Service_id;

SQL Query

➢ select

Customer.cust_id,customer.cust_Name,Service.Hotel_Name,Service.Transport_type,

Service.Other_details,Service.Destination

from Customer join Service on

Customer.cust_id=Service.cust_id;