Question: Task 1 (5 marks): Create the above tables based on the list provided above: booking, cruise, model, qualifications, roster, schedule, staff, tour, and vessel. Insert




anase waser \begin{tabular}{|l|l|l|} \hline QUALIFICATIONS & Comment/Description & Sample Data \\ \hline Column-Name & A unique identifier referencing StaffiD in the Staff Table & S01 \\ \hline SkillName (PK) & The qualification skill of the crew Staff & Swimming \\ \hline \end{tabular} \begin{tabular}{|l|l|l|} \hline VESSEL & Comment/Description & Sample Data \\ \hline Column-Name & A unique identifier for the Vessel & V01 \\ \hline VesseliD (PK) & A name for the Vessel & Vessel Diamond \\ \hline VesselName & A 4-digit number that identifies the year of purchase of the vehicle & 2010 \\ \hline VPurchaseYear & A unique identifier referencing ModeliD in the Model Table & M01 \\ \hline ModelID (FK) & \end{tabular} BOOKING \begin{tabular}{|l|l|l|} \hline \hline Column-Name & Comment/Description & Sample Data \\ \hline VessellD (PK, FK) & A unique identifier referencing VesseliD in the Vessel Table & V01 \\ \hline CruiselD (PK, FK) & A unique identifier referencing CruiselD in the Cruise Table & C01 \\ \hline \end{tabular} TOUR \begin{tabular}{|l|l|l|} \hline \hline Column-Name & Comment/Description & Sample Data \\ \hline CruiselD (PK, FK) & A unique identifier for the referencing CruiselD in the Cruise Table & CO1 \\ \hline TourCode (PK) & A unique identifier for the Tour & T01 \\ \hline TourName & A name for the Tour & HiraethBusiness \\ \hline TourCost & A price for the Tour per day & $300.00 \\ \hline TourType & Identifying the type of tour being conducted & Deluxe \\ \hline \end{tabular} \begin{tabular}{|l|l|l|} \hline STAFF \\ \hline Column-Name & Comment/Description & Sample Data \\ \hline StaffID (PK) & A unique identifier for the Staff & S01 \\ \hline StaffName & A name for the Staff & Lachlan Macquarie \\ \hline ManagerID & Identifies the Staffs Members Manager who & SO2 \\ \hline is also a Staff member & \\ \hline Position & Identifying the role of the Staff members & Pilot \\ \hline StaffPay & A price for the Tour per hour & $80.00 \\ \hline \end{tabular} ROSTER \begin{tabular}{|l|l|l|} \hline \hline Column-Name & Comment/Description & Sample Data \\ \hline SchedulelD (PK, FK) & A unique identifier referencing ScheduleID in the Schedule Table & SCO1 \\ \hline StaffiD (PK, FK) & A unique identifier referencing StaffiD in the Staff Table & SO1 \\ \hline StartDateTime & The rostered start date and time & 20220919 \\ \hline & & 18:30:00 \\ \hline EndDateTime & The rostered end date and time & 20220922 \\ & & 10:00:00 \\ \hline \end{tabular} CRUISE \begin{tabular}{|l|l|l|} \hline Column-Name & Comment/Description & Sample Data \\ \hline CruiselD (PK) & A unique identifier for the Cruise & C01 \\ \hline CruiseName & A name for the Cruise & HiraethCruise \\ \hline NumOfDays & Identifying the number of the days the cruise will operate & 10 \\ \hline RoutelD (FK) & A unique identifier referencing RouteID in the Route Table & R01 \\ \hline \end{tabular} SCHEDULE \begin{tabular}{|l|l|l|} \hline \hline Column-Name & Comment/Description & Sample Data \\ \hline ScheduleID (PK) & A unique identifier for the Schedule & SC01 \\ \hline StartDate & The schedule date & 20220913 \\ \hline MaxCapacity & The maximum capacity a schedule can manage & 100 \\ \hline CruiselD (FK) & A unique identifier referencing CruiselD in the Cruise Table & CO1 \\ \hline \end{tabular} Case Background Hiraeth Cruises has now moved to relational databases (Thanks to your design). They are having trouble creating tables and writing a few queries. You have been employed to construct and implement the database and write queries for some common searches. Comments are provided for you to understand the columns and are not to be added to the database. Do not change the table or column names whilst creating the tables. Penalties will apply if you do so. anase waser \begin{tabular}{|l|l|l|} \hline QUALIFICATIONS & Comment/Description & Sample Data \\ \hline Column-Name & A unique identifier referencing StaffiD in the Staff Table & S01 \\ \hline SkillName (PK) & The qualification skill of the crew Staff & Swimming \\ \hline \end{tabular} \begin{tabular}{|l|l|l|} \hline VESSEL & Comment/Description & Sample Data \\ \hline Column-Name & A unique identifier for the Vessel & V01 \\ \hline VesseliD (PK) & A name for the Vessel & Vessel Diamond \\ \hline VesselName & A 4-digit number that identifies the year of purchase of the vehicle & 2010 \\ \hline VPurchaseYear & A unique identifier referencing ModeliD in the Model Table & M01 \\ \hline ModelID (FK) & \end{tabular} BOOKING \begin{tabular}{|l|l|l|} \hline \hline Column-Name & Comment/Description & Sample Data \\ \hline VessellD (PK, FK) & A unique identifier referencing VesseliD in the Vessel Table & V01 \\ \hline CruiselD (PK, FK) & A unique identifier referencing CruiselD in the Cruise Table & C01 \\ \hline \end{tabular} TOUR \begin{tabular}{|l|l|l|} \hline \hline Column-Name & Comment/Description & Sample Data \\ \hline CruiselD (PK, FK) & A unique identifier for the referencing CruiselD in the Cruise Table & CO1 \\ \hline TourCode (PK) & A unique identifier for the Tour & T01 \\ \hline TourName & A name for the Tour & HiraethBusiness \\ \hline TourCost & A price for the Tour per day & $300.00 \\ \hline TourType & Identifying the type of tour being conducted & Deluxe \\ \hline \end{tabular} \begin{tabular}{|l|l|l|} \hline STAFF \\ \hline Column-Name & Comment/Description & Sample Data \\ \hline StaffID (PK) & A unique identifier for the Staff & S01 \\ \hline StaffName & A name for the Staff & Lachlan Macquarie \\ \hline ManagerID & Identifies the Staffs Members Manager who & SO2 \\ \hline is also a Staff member & \\ \hline Position & Identifying the role of the Staff members & Pilot \\ \hline StaffPay & A price for the Tour per hour & $80.00 \\ \hline \end{tabular} ROSTER \begin{tabular}{|l|l|l|} \hline \hline Column-Name & Comment/Description & Sample Data \\ \hline SchedulelD (PK, FK) & A unique identifier referencing ScheduleID in the Schedule Table & SCO1 \\ \hline StaffiD (PK, FK) & A unique identifier referencing StaffiD in the Staff Table & SO1 \\ \hline StartDateTime & The rostered start date and time & 20220919 \\ \hline & & 18:30:00 \\ \hline EndDateTime & The rostered end date and time & 20220922 \\ & & 10:00:00 \\ \hline \end{tabular} CRUISE \begin{tabular}{|l|l|l|} \hline Column-Name & Comment/Description & Sample Data \\ \hline CruiselD (PK) & A unique identifier for the Cruise & C01 \\ \hline CruiseName & A name for the Cruise & HiraethCruise \\ \hline NumOfDays & Identifying the number of the days the cruise will operate & 10 \\ \hline RoutelD (FK) & A unique identifier referencing RouteID in the Route Table & R01 \\ \hline \end{tabular} SCHEDULE \begin{tabular}{|l|l|l|} \hline \hline Column-Name & Comment/Description & Sample Data \\ \hline ScheduleID (PK) & A unique identifier for the Schedule & SC01 \\ \hline StartDate & The schedule date & 20220913 \\ \hline MaxCapacity & The maximum capacity a schedule can manage & 100 \\ \hline CruiselD (FK) & A unique identifier referencing CruiselD in the Cruise Table & CO1 \\ \hline \end{tabular} Case Background Hiraeth Cruises has now moved to relational databases (Thanks to your design). They are having trouble creating tables and writing a few queries. You have been employed to construct and implement the database and write queries for some common searches. Comments are provided for you to understand the columns and are not to be added to the database. Do not change the table or column names whilst creating the tables. Penalties will apply if you do so
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
