Design a database for the scenario

Assignment Help Database Management System
Reference no: EM131213542

Database Design and Implementation

Task 1 - Database Design

Your first task is to design a database for the scenario detailed on the following pages. Your final database design should comprise of approximately 10 entities.

State any assumptions you have made regarding your database design at the beginning of the database design document. Do not make any assumptions that significantly change the structure of the scenario, as this may make Task 2 of the assignment difficult. Only make assumptions that influence your database design. If you are unsure about an assumption you wish to make, ask your tutor.

Once you feel you have identified the entities, attributes and relationships of the scenario in sufficient depth, you are required to create a logical ER diagram and a corresponding physical ER diagram (5 marks) to depict your database. Adhere to the distinctions between logical and physical ER diagrams covered in Lecture 3. It is recommended that you draw your diagrams on paper first, in order to find a layout that is clear and can be created in an electronic format.

Lastly, create a data dictionary (7 marks), with an entry for each entity in your database. The entries should list the name of the entity, a description of its purpose, a list of attributes (columns), important information about the attributes (e.g. data type, null/not null, identity, default values...), and details of any constraints applied to attributes. List the entries in your data dictionary in an appropriate table creation order that can be used to create the database. Include any additional information, if any, that may be needed to implement the database. Remember, a data dictionary should contain all the information needed to implement a database. Use the data dictionary in Lecture 4 and the data dictionary of the "company" example database (Module 5) as examples. Some marks are also awarded for presentation and notation.

Your complete database design should consist of a list of assumptions, logical and physical ER diagrams and a data dictionary. This should be in the form of a single PDF document. Make sure that your assignment includes the unit code, assignment number/name, year and semester and your name and student number on the first page.

Scenario Details

You are required to design and create a database for an airline. The database must contain details of the airline's planes, flights, flight instances and staff, as well as supporting data as detailed below.

- Details of the planes owned by the airline must be stored. This must include the registration number of the plane, the year it was built, its first class and economy passenger capacities, and a foreign key identifying the model of the plane.

- Details of plane models must be stored. This must include the model number, manufacturer name, range (how many kilometres it can travel without refuelling) and cruise speed.

- Details of flights must be stored. This must include a flight number, a foreign key identifying the airport the flight departs from, a foreign key identifying the airport the flight arrives at, and the distance between the airports in kilometres.
- Note: A flight is a route that the airline offers - e.g. Flight QF574 is a Perth to Sydney route offered by Qantas.

- Details of flight instances must be stored. This must include a flight instance ID, a foreign key identifying the plane making the flight, a foreign key identifying the flight that is being flown, the date/time that the flight leaves, and date/time that the flight arrives.
- Note: A flight instance is a specific occurrence of a flight - e.g. The 2016-07-04 QF574 flight at 05:30.

- Details of airports must be stored. This must include the airport code (e.g. "PER" for Perth), the name of the airport, a contact phone number, its latitude and longitude, and a foreign key identifying the country that the airport is in.

- A list of countries must be stored. This must simply contain the two letter country code (e.g. "AU") and the name of the country.

- Details of pilots must be stored. This must include a pilot ID, their first name, last name, date of birth and number of hours flown.
- The database must record which models of plane each pilot is qualified to fly. Each pilot must be qualified to fly at least one model of plane.
- The database must record which pilots are aboard each flight instance. Each flight instance requires exactly two pilots (a pilot and co-pilot).

- Details of flight attendants must be stored. This must include an attendant ID, their first name, last name, date of birth and hire date.
- For training purposes, some flight attendants mentor other flight attendants. The database must record each flight attendant's mentor, if they have one.
- The database must record which attendants are aboard each flight instance. A flight instance can have many attendants on board.
- The database must record which attendant has been designated the flight service manager (FSM) of each flight instance. Each flight instance must have one FSM.

General Information and Guidelines
The information above describes all of the entities, attributes and relationships required in the database design. Some minor details, such as the cardinality of some relationships, have been omitted. It is up to you to make (and state) any assumptions you need in order to complete the database design. If you are uncertain about any part of the scenario described above, seek clarification from your tutor.

Many of the entities in this scenario contain an identifying attribute that is suitable to be used as the entity's primary key, such as plane registration numbers, model numbers, flight numbers, airport codes, etc. These values will not be auto-incrementing. For entities that do not have a meaningful attribute to use as the primary key, use auto-incrementing integers - for example, flight instance ID numbers, and the ID numbers of staff should be auto-incrementing integers. A compound primary key may be suitable for certain intermediary entities.

Be sure to specify the most appropriate data type (and length, where applicable) for each attribute in your data dictionary. Note that when you are storing a date/time (for example the departure time or arrival time of a flight instance), it should be stored as a single column - do not split the date and time into two columns unless there is a very good and necessary reason to do so.

Read the scenario details several times to ensure that your database design incorporates all the elements described. If you desire feedback on your work in progress, send it to your tutor.

Additional Requirements

Task 2 - Implementation

Once your database has been designed, it is time to implement it in a DBMS, populate the database, and then manipulate the data via queries. The deliverables of this task are three files containing SQL statements. We will be using Microsoft SQL Server 2008 R2 or above - your SQL scripts must run in the same environment used in the unit/labs.

Create your scripts as three ".sql" files, with the filenames listed in the following headings. Templates for the script files are provided with this assignment brief - please use them. Format your code for readability, and use comments for headings and to provide further detail or information about your code if needed.

Database Creation & Population Script
Produce a script to create the database you designed in Task 1 (incorporating any changes you have made since then). Be sure to give your columns the same data types, properties and constraints specified in your data dictionary, and be sure to name tables and columns consistently. Include any logical and correct default values and any check or unique constraints that you feel are appropriate.

Attachment:- Assignment_162.rar

Reference no: EM131213542

Questions Cloud

How would you speculate using a forward contract : How would you speculate using a forward contract?- If many people speculate in this way, what pressure is placed on the value of the current forward exchange rate?
Emerging technologies in the professional environment : What are the benefits of emerging technologies in the professional environment? How might an organization use technology to promote its branding, products and services?
Extend the transaction manager to use read and write locks : A cell can either be locked with exactly one write lock or with any number of read locks. For this exercise, extend the transaction manager to use read and write locks.
Mobile data secure for customers : How do companies keep mobile data secure for customers? How do companies use technology to create competitive advantage?
Design a database for the scenario : CSG1207 - CSI5135 Systems and Database Design - Your first task is to design a database for the scenario detailed on the following pages. Your final database design should comprise of approximately 10 entities.
Is the swiss franc at a forward premium or discount : Should a U.S.-based investor make a covered investment in Swiss franc-denominated 30-day bonds, rather than investing in 30-day dollar-denominated bonds? Explain.
What role do women in science play today : Discuss how the methods of experimentation and observation have changed throughout the history of science. Explain the role so called "accidental" discoveries played in the history of science.
Optimize the get lock and save state protocols : It is clear that they are only really needed the first time. For this exercise, optimize the get lock and save state protocols so they use the least possible number of messages.
Examples of the different taxbases : Explain the meaning of "tax base" and give THREE examples of the different taxbases regularly used by governments.

Reviews

Write a Review

Database Management System Questions & Answers

  Provide an relational schemas

Find the names and company names of all employees sorted in ascending order of company name and descending order of employee names of that company.

  How each influence the design of the logical database model

Your supervisor requested a short memo identifying each of the five W's and the H (Who, What, Where, When, Why, and How) and how each could influence the design of the logical database model. Compose an 600-word e-mail to your supervisor.

  Create a new dataset called dsuser

Create a new DataSet called dsUser. Use the table tblLogin as the database table for this dataset. Do this in the same way you added datasets in the previous labs.

  Show the records of depositor tables

Create 2 tables customer with fields customer_id, customer_name, customer_street, customer_city and depositor customer_id, account_number, balance Set relation between the two tables: Perform the following query: 1) Show the records of depositor tabl..

  Identify the type of dependency

Identify the cardinality between teams and players and between teams and city.

  Identify a unique type of file in windows or linux

Identify a unique type of file in Windows or Linux with which you are familiar. Suggest the key factors that in your opinion make this a unique type of file

  Assignment related to the prestige hotel

Import the Location data from the Excel file a02m2location into your database as a new table. Set the LocationlD Indexed property to Yes (No Duplicates), and then set the data type to Long Integer. Select the LocationlD field as the primary key. N..

  Give an example of an update that is definitely slowed

The title of the ?rst record in the previous set, and the primary key of the ?rst record in the previous set.

  Integrity constraint prevent-data inserted in table

Integrity constraint prevent from happening when data is inserted in table which contains this constraint? Let INSERT, UPDATE, and DELETE actions on both child and the parent.

  Database backup and restore practices relating to security

Database backup and restore practices relating to security

  1 create a function that returns the day of the week for a

1. create a function that returns the day of the week for a specified date.create or replace function

  What would be the total overhead cost

What would be the total overhead cost per delivery according to the activity based costing system? In other words, what would be the overall activity rate for the deliveries activity cost pool?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd