Write sql queries to answer the following questions

Assignment Help PL-SQL Programming
Reference no: EM13930126

Consider the 3 tables with these attributes:

TABLE MECHANIC
(
LAST_NAME VARCHAR(50),
BIRTHDATE DATETIME,
PHONE_NO CHAR(10)
)

TABLE AIRPLANE
(
SERIAL_NO CHAR(12),
MODEL VARCHAR(40),
CAPACITY INT
)

TABLE WORKS_ON
(
MECHANIC_LAST_NAME VARCHAR(50),
MECHANIC_BIRTHDATE DATETIME,
AIRPLANE_SERIAL_NO CHAR(12),
CONTRACT_AMOUNT MONEY
)

Write SQL queries to answer the following questions:

(a) Find the last names, birth dates, and phone numbers of all mechanics who have earned at least $50000 from contracts on

Boeing 747 airplanes.

(b) Find the average amount of money that it has taken to do maintenance on each different model of jumbo jet (defined to

be any airplane model whose capacity is at least 150).

(c) Double the capacity of each DC-10 airplane.

(d) Add to the database, for each DC-9 model airplane,

a DC-10 model airplane with a capacity 50 greater than that of the DC-9 and a serial number

the same as that of the DC-9 except with an extra leading "1".

 

Reference no: EM13930126

Questions Cloud

Apply one of the leadership theories from the course : Apply one of the leadership theories from the course text to the organization. Explain how the theory works and include an example.Explain the effect of power and influence that leaders have on followers in the organization. Are the followers recepti..
Considering sale of new sound board used in recording studio : Rolston Music Company is considering the sale of a new sound board used in recording studios. The new board would sell for $25,600, and the company expects to sell 1,410 per year. The company currently sells 1,910 units of its existing model per year..
Information about a potential mate : A wide variety of animals tend to select mates based on judgment of particular qualities they possess which may indicate important information about a potential mate (Jones, 1992).
How will you obtain consent for child participation : How will you explain the purpose of this group to parents and guardians of the participants? How will you obtain consent for child participation?
Write sql queries to answer the following questions : Double the capacity of each DC-10 airplane.
What type of companies do these rules apply to : What type of companies do these rules apply to?
The equipment is worth-what is the cost of leasing : Waldrop Corporation must install $200 of new equipment in its Ohio plant. It can obtain a bank loan for 100% of the required amount at 3% interest on the loan. Alternatively, the firm can leas the equipment on a 2-year lease, the payment would be $11..
Term board of directors in term of management : Discuss and describe the term Board of Directors in term of management.
Investigate genetic processes : Investigate genetic processes, including those that occur during meiosis, and analyze data to solve basic genetic problems involving monohybrid and dihybrid crosses.

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

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