Question
Note: show entities, attributes, and relationships Transfer business rules into database design ERD Based on the ERD, write the database accordingly using SQL please include
Note: show entities, attributes, and relationships
Transfer business rules into database design ERD
Based on the ERD, write the database accordingly using SQL
please include a word file of the ERD and a sql script to write the database
Background
Luxury-Oriented Scenic Tours (LOST) provides guided tours to groups of visitors to the Washington D.C. area.In recent years, LOST has grown quickly and is having difficulty keeping up with all of the various information needs of the company.Please help them to design a well-structured database LOST, so they can easily monitor the company's performance.
The company's operations are as follows.
1.LOST offers many different tours.For each tour, the tour name, approximate length (in hours), and fee charged is needed.Guides are identified by an employee ID, but the system should also record a guide's name, home address, and date of hire.Guides take a test to be qualified to lead specific tours.It is important to know which guides are qualified to lead which tours and the date that they completed the qualification test for each tour.A guide may be qualified to lead many different tours.A tour can have many different qualified guides.New guides may or may not be qualified to lead any tours, just as a new tour may or may not have any qualified guides.
2.Every tour must be designed to visit at least three locations.For each location, a name, type, and official description are kept.Some locations (such as the White House) are visited by more than one tour, while others (such as Arlington Cemetery) are visited by a single tour.All locations are visited by at least one tour.The order in which the tour visits each location should be tracked as well.
3.When a tour is actually given, that is referred to as an "outing."LOST schedules outings well in advance so they can be advertised and so employees can understand their upcoming work schedules.A tour can have many scheduled outings, although newly designed tours may not have any outings scheduled.Each outing is for a single tour and is scheduled for a particular date and time.All outings must be associated with a tour.All tours at LOST are guided tours, so a guide must be assigned to each outing.Each outing has one and only one guide.Guides are occasionally asked to lead an outing of a tour even if they are not officially qualified to lead that tour.Newly hired guides may not have ever been scheduled to lead any outings.Tourists, called "clients" by LOST, pay to join a scheduled outing.For each client, the name and telephone number are recorded.Clients may sign up to join many different outings, and each outing can have many clients.Information is kept only on clients who have signed up for at least one outing, although newly scheduled outings may not have any clients signed up yet.
Tasks:
1.Please draw an appropriate (and fully labeled) Entity Relationship Diagram, and your ERD should contain entities, relationships, connectivities and cardinalities.
2.Further, please crease a database named LOST based on the ERD you designed in Task 1.
things to show
1.Your ERD must at least have the following entities: tour, guide, location, client, and outing
2.Each entity must be specified some appropriate attributes
3.Each entity must have a primary key (not null but unique)
4.Each entity may have a foreign key
5.Composite entity must be created if the relationship is M:N
6.Each entity should be at least connected to one entity, with a 1:M or 1:1 relationship (In many cases, there may only have 1:M). Also, indicates whether it's a strong relationship (solid line) or weak relationship (dash line).
7.Each table in your database should be consistent with your ERD, meaning it should have a correct primary key and a foreign key(s) if needed.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started