Implement the tasks using oracle application

Assignment Help Database Management System
Reference no: EM133694196

Database Fundamental

AIMS AND OBJECTIVES:

to perform queries on a relational database system using SQL;
Implement the following tasks using ORACLE Application Express (APEX).
Download the file NEASchema.sql from the LMS site and run it on APEX. This file contains all the CREATE and INSERT statements you will need for this assignment. Run the schema file on APEX following the same process we followed to run a schema during the lectures and labs.

The list of tables available for this assignment is the following:

MODEL(modelID, economySeats, buisnessSeats, firstClassSeats, cargoCapacity, fuelCapacity, length, wingspan) LOCATION(airportCode, country, address, phone) TICKET(ticketNum, luggageLimit, seatNum, classCode, medicalCondition, mealChoice, customerID, flightID)
ROUTE(routeID, description, arriveAirportCode, departAirportCode) AIRCRAFT(aircraftID, modelID)
STAFF(staffID, name, address, email, phone, passportNum) PILOT (staffID, prvHrsPilotExp)
FLIGHTATTENDANT (staffID)
CUSTOMER(customerID, name, address, country, email, phone, birthdate, passportNum)
FLIGHT(flightID, estDepartureDateTime, actDepartDateTime, actArriveDateTime, avgSpeed, avgHeight, estDuration, estFuel, captainStaffID, firstOfficerStaffID, routeID, aircraftID) ADDITIONAL_PILOT(staffID, flightID, activityCode, activityDesc) HOSTING(staffID, flightID)
PILOT_QUALIFICATION(qualification, staffID)

Task 1

Using the tables provided above, provide SQL select statements for the following queries. For some of the queries, we have provided some notes, which you may find helpful.

List the model ID, cargo capacity, and fuel capacity of all aircraft models in NEA database and order them in descending order based on their length.

Display the staffID, name, and address for all pilots in NEA who have a commercial pilot licence (CPL).
Note: A good place to start would be to investigate the data in PILOT_QUALIFICATION table.

Display the staffID, name, and address for all pilots in NEA who have attended a ‘Navigation Exercise' as part of their training flights.
Note: A good place to start would be to investigate the data in ADDITIONAL_PILOT table.

List the model ID, aircraft ID, total number of seats, destination country and actual flight duration (in hours) of every flight to have departed from NEX airport (excluding flights for which actual departure/arrival datetime has not been recorded yet).

Note: if you subtract two dates in Oracle, you get the difference in days which can also be a fraction. After that, you can multiply the result of the subtraction with 24 to get the hours between the two dates. You can play around with this type of queries - ‘select (date1-date2)*24 from table1' as a starting point.

The management want to check the trend in popularity of gluten free meal requests. For each flight in NEA database, list the number of vegan and gluten free (meal choice code ‘VG' in the data) meal preferences.

For each flight that has already departed (i.e., actual departure datatime is recorded), display the flight ID, actual departure date, actual departure time (in a separate column), and the number of days that have passed between now (system date) and the depature. The displayed table should have 4 columns.

List the model ID, length, wingspan, destination country and actual flight duration (in hours) of the longest (actual duration) flight to ever depart from NEX airport.
Note: You may want to use an inner query to calculate the maximum duration.

The management team wish to determine if an appropriate number of hosts have been assigned to each flight. For each departed flight display the flight number, number of tickets sold, and number of hosts assigned.
Note: You may want to ‘count' distinct things in a collection of things.

Display a table of all customer departures and arrivals from the airport with airport code 'NED'. For each row display the flight ID, customer ID, customer name, and the details of the preferred contact method. The preferred method is the customer's phone number for departures and email for arrivals. The displayed table should have exactly 4 columns. Order the result by flight number (first) and customer ID (second).

Reference no: EM133694196

Questions Cloud

How should bhps chief people officer respond : How should BHPs Chief People Officer respond to the issues in the case study, and more broadly what specific HRM strategies, practices, policies, or procedures
How you as a newly recruited events-development : How you as a newly recruited events-development manager will translate the expansion of the enterprise from your home market (your own country of primary
Business intelligence and reporting systems : ITECH7406 Business Intelligence and Data Warehousing, Federation University - Differentiate between the various applications and scope of different technologies
Explain how your experience in this project aligns : Explain how your experience in this project aligns with your chosen or contemplated career direction and how you contributed to the group when working
Implement the tasks using oracle application : CSE2/4DBF Database Fundamental, La Trobe University - Implement the following tasks using ORACLE Application Express (APEX). Download the file NEASchema.sql
Demonstrate your understanding of language and communication : ECE6011 Languages of Children, Victoria University Design, prepare and present 3 x Invitations to Play drawing on content of the unit material and journal
What is the importance of cultural and heritage management : RIICWD535E Prepare detailed design of civil timber structures, and What is the importance of cultural and heritage management in designing civil timber
Develop a new interactive system : 32555 Fundamentals of Software Development, University of Technology Sydney, develop a new interactive system. The system should offer access to two interactive
Prompt to control and test your implementation : Implementation of three classes, namely Node, LinkedList, and Browser. For each class, you are provided with the header file and skeleton implementations

Reviews

Write a Review

Database Management System Questions & Answers

  How is the logical-to-physical address mapping accomplished

If we are currently at logical block 10 (the last block accessed was block 10 ) and want to access logical block 4, how many physical blocks must be read from the disk?

  Find and display the total owed for all taxpayers

Exit the program (If the user choices 4, the program will exit. If the user chooses 1, 2 or 3, the program will do what the menu item says it will do, and then the menu will appear again.

  Translate the conceptual e-r data model for the application

Translate the conceptual E-R data model for the application, developed without explicit consideration of specific user interfaces, into normalized data requirements.

  Describe steps that you would use in order to convert tables

Describe the steps that you would use in order to convert database tables to the First Normal Form, the Second Normal Form, and the Third Normal Form.

  Develop one table for detailing either the student or event

Develop one table for detailing either the Student or the Event entity and Develop an entity relationship diagram for the MPA database

  Conduct research on Student Course Enrolment system

CN7012 - Database Systems Assignment -

  Effect of stunting growth later in life

Several male athletes have reported having growth spurts well into their college years. Why is this phenomenon more likely for males then females?

  List the book code and title of each book that has type fic

List the book code and title of each book that has the type FIC.

  Create a class called testsystem

Create a class called TestSystem and write atest method which tests your system using a scenario. In your report document, describe the testing scenario and the expected behaviour of your system. Provide screen shots of your system testing in your..

  Describing the purpose of database an its functionality

Describing the purpose of database an its functionality, plus a detailed E-R diagram.

  Query using a literal character string

query specifying specific columns query using a column alias query using the concatenation operator query using a literal character string

  Make a select query with a calculated field for age

Make a select query with a calculated field for age,  to list only guests between 20 and 40 years of age! Make sure to enter a range of ages in your table so you have something to display.

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