















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















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
→SQL Code for Creating Database Table
→Database Table →Database
→SQL Query
Features
ER Diagram
SQL Code for Creating Database 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');
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');
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');
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');
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
etc
SQL Query
SQL Query