66853 - tour db/dependency diagram.png
66853 - tour db/ER diagram.png
66853 - tour db/report.docx
Entity Relationsip diagram
Dependency DiagramTable creation
Create table Address(
AddressId int primary key,
Country varchar(50),
State varchar(50),
City varchar(50),
StreetName varchar(100),
Postcode int
);
Insert into Address (AddressId, Country, State, City, StreetName, Postcode)
values (101, 'Australia','Queensland','ABC','DD',5007),
(102,'Australia','Tasmania','DEF','AA',400);
Create table Users (
UserId varchar(5) primary key,
Name varchar(20),
Phone varchar(100),
Email varchar(200),
Age int,
Sex varchar(10),
AddressId int,
StreetNumber int,
Profile varchar(10),
Foreign key (AddressId) references Address(AddressId)
);
Insert into Users (UserId, Name, Phone, Email, Age, Sex, AddressId, StreetNumber, Profile)
values ('U01','Steve','54465656','
[email protected]',24,'M',1,24,'Customer'),
('U02','Henry','45454343,3443555','
[email protected]',29,'M',1,12,'Employee'),
('U03','Maria','334554566','
[email protected]',20,'F',2,11,'Guide');
Create table Itinerary(
ItineraryId int primary key,
TourDate date,
BreakfastLocation varchar(50),
LunchLocation varchar(50),
DinnerLocation varchar(50),
Room int,
RoomType varchar(10),
Accomodation varchar(50),
Description varchar(200)
);
Insert into Itinerary(ItineraryId, TourDate, BreakfastLocation, LunchLocation, DinnerLocation, Room, RoomType, Accomodation, Description)
values...