Use the prime minister database

Assignment Help PL-SQL Programming
Reference no: EM13316169

Use the Prime Minister database (Prime_Minister_2013.sql) available from the Interact site. Answer the following queries using that database.

You are required to submit:

The appropriate SQL statements, which should be copied from your SQL code in MySQL, and 1. pasted into your submission file; and
Screenshots of the resultant tables which are to be pasted into your assignment file immediately 2. after the SQL code. Typing or manually drawing the results is NOT acceptable.

Write SQL SELECT statements to retrieve the following information from the Prime Minister database.

List the name, year commenced service as Prime Minister, party, state represented and the 1. name of the Deputy Prime Minister for each Prime Minister that served for less than 3 years. Order by the year they commenced service as Prime Minister in descending order.

2. List the name, party, recreation(s), name of their spouse and number of children of each Prime Minister of a Labor government who had four or more children and enjoyed outdoor sports.

3. List the name, the year that they commenced service as Prime Minister, the party they led and each Prime Minister of a Labor government. Order by the the year in which they left office of  year they commenced service and the Prime Minister's name.

Did any Deputy Prime Minister(s) subsequently become Prime Minister? List the Deputy 4. Prime Ministers name, the year that he/she commenced as Deputy Prime Minister, the year he/she commenced as Prime Minister and the party that they led. Order the list by name, year
commencing as Prime Minister and Party in descending order.

Attachment:- ASSIGNMENT.rar

Reference no: EM13316169

Questions Cloud

Electrical engineering design report - charger and inverter : Electrical Engineering Design Report about any topic prefer charger and inverter
Decrease in the number of stores accepting credit cards : The Federal Reserve was established in 1913 and is, therefore, a “creature of Congress.” The President of the United States nominates members of the Board of Governors of the Federal Reserve, subject to confirmation by the Senate. However, the Federa..
The distinctiveness of the organization : An organization that you know relatively well and attempt to construct a mission statement in light of the components of missions discussed in this chapter. What components did you choose to emphasize in the statement? Why? What component do you thin..
Determine the rise in temperature of the flowing water : A nuclear power plant has an electrical power output of 1067MW and operates with an efficiency of 45%. what is the rise in temperature of the flowing water
Use the prime minister database : Write SQL SELECT statements to retrieve the following information from the Prime Minister database.
What is the opportunity cost of taking the trip : You plan a major adventure trip for the summer. You won’t be able to take your usual summer job that pays $6,000, and you won’t be able to live at home for free.
What is the capacitance of this second capacitor : A 150 pF capacitor is charged to a potential difference of 64 V, and the charging battery is disconnected. what is the capacitance of this second capacitor
Compute the price elasticity of demand for the range : The new Millennium Dome Company (NMDC) must choose the entry fee for a new sports arena. Suppose an expensive consultancy firm has estimated the demand schedule to be as follows:
By how much does the first diver hit the water first : Two divers jump from a 5-m platform. One jumps upward at 1.90m/s , and the second steps off the platform as the first passes it on the way down. By how much does the first diver hit the water first (seconds)

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