Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask PL-SQL Expert

Plane_new table

PNUM             FEATURE                     PTYPE
---                 --------------------               ---------------
p01                   Regular                      Normal
p02                   Multiple_en                Commuter
p03                   Propeller                    Commuter
p04                   Single_en                   Very_light
p05                   Singel_en                   Very_light
p06                   Multiple_en                Commuter
p07                   Regular                      Normal
p08                   Wildlife                       Restricted
p09                   Multiple_en                Commuter
p10                   Regular                      Normal

Employee_new table

EID              NAME          SALARY             MID
---            -------------        -------                 -----
e01            Wilson           53000
e02            Smith             48000              e01
e03            Jones             38000              e01
e04            Loftus            41000
e05            Wang            54000               e04
e06            Smith             45000               e04
e07            Green            48000
e08            Fox                49000               e04
e09            Wolf               41000               e04
e10            Fox                32000                e01
e11            Phillips           33000                e07
e12            Liu                 27000                e07

Pilot_new table

EID                           LICENCE
---                             ---------
e01                           123456789
e02                           234567891
e03                           345678912
e04                           456789012
e05                           567891234
e06                           678912345
e08                           890123456
e09                           901223456
e10                           102345678

FlightI_new table

FNUM                FDATE       DURATION        PID           PNU
----                  ----------          ----------          ---               ---
f01                  09-SEP-11          2                e01             p01
f02                  30-Sep-11          3                e02             p02
f03                  15-OCT-11         4                e02             p03
f04                  15-OCT-11         3                e03             p01
f05                  25-OCT-11         2                e04             p04
f06                  26-OCT-11         3                e05             p04
f07                  26-OCT-11         4                e06             p05
f08                  30-OCT-11         3                e06             p07
f09                  31-OCT-11         2                e08             p09
f10                  31-OCT-11         1                e02             p01
f11                  01-NOV-11        4                e09             p10
f12                  02-NOV-11        3                e01             p03
f13                  02-NOV-11        4                e02             p04
f14                  15-NOV-11        2                e03             p02
f15                  15-NOV-11        2                e02             p03

Use SELECT command to display the contents of your tables.

Develop SQL statements for the given queries:

problem: List the names of pilots implementing flights on the planes of Normal type.

problem: List out plane registration numbers and features for planes which have been employed to implement more than one flight after October 15, 2011

problem: Determine and display all pilots (names only) who didnt implement a flight after October 31, 2011.

problem: For each and every plane display its plane number and the total number of hours spent in the air. Comprise planes which were not used at all. For such planes, leave the total number of hours blank.

problem: Find the name(s) of pilot(s) who implemented the longest flight.

problem: Find out the names of senior pilots (managers) whose pilots implemented flights on the planes of type Very_light.

problem: Find and exhibit all pilots (employee ID and name) who implemented flights on the planes of Commuter type and Normal type.

problem: For each and every flight, display its number, the name of the pilot who implemented the flight and the words Longer than average if the flight duration was longer than average or the words Shorter than average if the flight duration was shorter than or equivalent to the average. For column holding the words Longer than average or Shorter than average make a header Length.

PL-SQL, Programming

  • Category:- PL-SQL
  • Reference No.:- M9240

Have any Question? 


Related Questions in PL-SQL

Use mysql workbench for these questions do not use

Use MySQL Workbench for these questions. Do NOT use Lucidchart. MySQL Workbench has more capability than Lucidchart, as it allows creation of DDL SQL from the model. Turn in 1 Workbench file , 1 document with the forward ...

Database assignment aggregate functions nested queries

Database Assignment: Aggregate Functions, Nested Queries, Union, Intersect, Except Name__Shelly Rideout Write the SQL code for the following queries (you do not have to give the results of the query) 1. List the employee ...

Case study susan the sql programmerplease assist with the

Case Study: Susan the SQL Programmer Please assist with the following. CASE EXAMPLE IS ATTACHED AS A .JPG Read the case example about Susan the SQL Programmer on page 6-1 of the Ethical Hacking and Countermeasures: Web A ...

The following assignment is based on the database

The following assignment is based on the database environment created Design and develop the below queries using professional principles and standards: • A set of SQL Statements that returns all rows and all data for eac ...

Module triggersmodule overview- in this module you will

Module Triggers Module Overview - In this module you will learn how to write PL/SQL and T-SQL triggers Objectives After completing this module you will be able: - to develop, test and debug Oracle PL/SQL triggers - to de ...

What is sqlanswer the following question in 500 words or

What is SQL Answer the following question in 500 words or more. You MUST use two outside sources to support your answer. You MUST cite these sources in APA Format. Title page, reference page, or cited sources do not coun ...

These exercises all use the createmyguitarshopsql links to

These exercises all use the create_my_guitar_shop.sql (Links to an external site.). Write the code for each and save the code (each code segment identified and separated) in Notepad. Submit your completed assignment via ...

Using the data model shown below write sql statements as

Using the data model shown below write SQL statements as specified below. Some questions may require more than one SQL statement to get the full answer. You may make up whatever data values you like to complete the assig ...

Sql fundamentalsprojectwrite a script that will create the

SQL Fundamentals Project Write a script that will create the below tables with the indicated relations. Your script must build a database that contains the tables specified in the diagram. You can use any name for your d ...

The stevens company is converting from the sql server

The Stevens Company is converting from the SQL Server database to the Oracle database. Using the sample shown below, create a Risk Information Sheet for at least five potential risks that might be encountered during the ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate