Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instructions Answer the following questions related to the Happy Cruise Lines company (refer to Minicase 1 on page 17). Each question should be answered using

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Instructions Answer the following questions related to the Happy Cruise Lines company (refer to Minicase 1 on page 17). Each question should be answered using proper rules of grammar, punctuation, and spelling where appropriate. Background Happy Cruise Lines has several ships and a variety of cruise itineraries, each involving several ports-of-call. The company wants to maintain information on the sailors who currently work on each of its ships. It also wants to keep track of both its past and future cruises and of the passengers who sailed on the former and are booked on the latter. Each ship has at least one and, of course, normally many sailors on it. The unique identifier of each ship is its ship number. Other ship attributes include ship name, weight, year built, and passenger capacity. Each sailor has a unique sailor identification number, as well as a name, date-of-birth, and nationality. Some of the sailors are in supervisory positions, supervising several other sailors. Each sailor reports to just one supervisor. A cruise is identified by a unique cruise serial number. Other cruise descriptors include a sailing date, a return date, and a departure port (which is also the cruise's ending point.) Clearly, a cruise involves exactly one ship; over time a ship sails on many cruises, but there is a requirement to be able to list a new ship that has not as yet sailed on any cruises, at all. Each cruise stops at at least one and usually several ports-of-call, each of which is normally host to many cruises, over time. In addition, the company wants to maintain information about ports that it has not as yet used in its cruises but may use in the future. A port is identified by its name and the country that it is in. Other information about a port includes its population, whether a passport is required for the passengers to disembark there, and its current docking fee, which is assumed to be the same for all ships. Passenger information includes a unique passenger number, name, home address, nationality, and date-of-birth. A cruise typically has many passengers on it (certainly at least one). Hoping for return business, the company assumes that each passenger may have sailed on several of its cruises (and/or may be booked for a future cruise.) For a person to be of interest to the company, he or she must have sailed on or be booked on at least one of the company's cruises. The company wants to keep track of how much money each passenger paid for for will cruises. The company wants to keep track of how much money each passenger paid for for will pay for) each of their cruises, as well as their satisfaction rating of the cruise, if it has been completed. Problems 1. Draw an entity-relationship diagram that describes the Happy Cruise lines business environment using Microsoft Visio (or equivalent Entity Relationship modeling software) and the Crow's Foot Database Notation template. The deliverable should be the Visio diagram or a PDF of the diagram (if using equivalent software). (20 points) 2. Consider the following relational database for Happy Cruise Lines. It keeps track of ships, cruises, ports, and passengers. A "cruise" is a particular sailing of a ship on a particular date. For example, the seven-day journey of the ship Pride of Tampa that leaves on June 13,2003 , is a cruise. Note the following facts about this environment: - Both ship number and ship name are unique in the SHIP Relation. - A ship goes on many cruises over time. A cruise is associated with a single ship. - A port is identified by the combination of port name and country. - As indicated by the VISIT Relation, a cruise includes visits to several ports and a port is typically included in several cruises. - Both Passenger Number and Social Security Number are unique in the PASSENGER Relation. A particular person has a single Passenger Number that is used for all of the cruises that she takes. - The VOYAGE Relation indicates that a person can take many cruises and a cruise, of course, has many passengers. UKI eIGLI VISIT Relation term Project Answer the following questions using the MySQL database. The deliverable will be a Microsoft Word or PDF document containing the screenshots of (or the actual) SQL. statements used to answer each question. ( 20 points) a. Create a database called "HAPPY_CRUISE_LINES". b. Create the six (6) tables using the appropriate DDL statement(s) based on the entity-relationship model you created as well as the relations provided. (Hint: make reasonable assumptions with regards to the data types and lengths using the CSV files provided.) c. Identify the candidate keys of each relation. d. Define the primary key and any alternate keys of each relation using the appropriate DDL statement(s). e. Define the foreign keys of each relation using the appropriate DDL statement(s). 3. Load the records provided in the six (6) CSV files into the appropriate tables. The deliverable will be a Microsoft Word or PDF document containing screenshots of (or the actual SQL statements) used to create each table as well as the results from executing a "SELECT " FROM" query against each table. (20 points) 4. Write SQL SELECT commands to answer the following queries. The deliverable will be a Microsoft Word or PDF document containing the screenshots of (or the actual SQL statements) showing both the query and results obtained from your MySOL database. ( 3 points each, 40 points total) a. Find the start and end dates of cruise number 35218. b. List the names and ship numbers of the ships built by the Ace Shipbuilding Corp. that weigh more than 60,000 tons. c. List the companies that have built ships for Happy Cruise Lines. Mid-term Project d. Find the total number of docks in all the ports in Canada. e. Find the average weight of the ships built by the Ace Shipbuilding Corp. that have been launched since 2000 . f. How many ports in Venezuela have at least three docks? g. Find the total number of docks in each country. List the results in order from most to least. h. Find the total number of ports in each country. i. Find the total number of docks in each country but only include those countries that have at least twelve docks in your answer. j. Find the name of the ship that operated on (was used on) cruise number 35218. k. List the names, country, and state of the passengers who sailed on The Spirit of Nashville on cruises that began during July 2003. k. List the names, country, and state of the passengers who sailed on The Spirit of Nashville on cruises that began during July 2003. I. Find the names of the company's heaviest ships. m. Find the names of the company's heaviest ships that began a cruise between July 15 , 2003 , and July 31, 2003

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Theory And Applications 27th Australasian Database Conference Adc 20 Sydney Nsw September 28 29 20 Proceedings Lncs 9877

Authors: Muhammad Aamir Cheema ,Wenjie Zhang ,Lijun Chang

1st Edition

3319469215, 978-3319469218

Students also viewed these Databases questions

Question

Define Administration and Management

Answered: 1 week ago