Find all governors general of australia

Assignment Help Database Management System
Reference no: EM13500840

Use the prime_minister  database (prime_minister.sql) from the Interact Resources site. Answer the following queries from that database.

You are required to submit:

  1. The appropriate SQL statements for each query, which should be copied from your SQL code in MySQL and pasted into your submission file;
  2. Your SQL script, which is either for each question--one-step solution, or for the two sub-questions of each question-- two-step solution; and
  3. Screenshots of the resultant tables which are to be pasted into your submission file immediately after the SQL code for that query. Typing or manually drawing the results is NOT acceptable.

    1.  Your SQL code should be correct for any data, not just any sample data that you create.

    2.  If your query results are contradict with the fact, please still present your answers based on the given prime_minister database.

    3. The final query results by either one-step solution or two-step solution for each question should be the same.

Write SQL SELECT statements to retrieve the following information from the prime_minister database: Answer all questions

1. Find all Governors General of Australia who were Barons at the time of their appointment. List them by Title and name and date that they were appointed to the position. Order the list by ascending date of appointment.

You can choose to answer  this question in two steps:

   a. Restrict your query to Governors General who were Barons at the time of their appointment

   b. Then format the date of appointment as day of the week, day of the month, month and year; eg. Monday, 01 January, 1901. Order the list by ascending date of appointment.

2. Find all the Leaders of the Opposition and their date of appointment who gained their position after 01/01/1980, their wife's name and their date of marriage. Order the list by ascending date of appointment. (3 marks).

You can choose to answer this question in two steps:
   a. list those who were the Leaders of the Opposition  and their date of appointment who gained their  position after 01/01/1980.
   b. For each Leader of the Opposition listed as above, add their wife's name and their date of marriage.

 3. Who are the Leaders of the Opposition who were not members of a Labor party and who gained their position after 01/01/1980. List their name, date of election in the format month, day of week and year, eg: January 1st, 1980, spouse's name and their year of marriage.  Order the list by ascending date of appointment.

 You can choose to answer this question in two steps:

   a. List whose who are the Leaders of the Opposition who were not members of a Labor party. Order the list by  ascending date of appointment
   b. Based on the result of  Q.3a, list whose who gained their position after 01/01/1980. Order the list by ascending date of appointment

4. List the title, name, date of appointment for Governors General of Australia who were appointed between 01 January 1930 and  01 January 1960, together with the Prime Ministers who appointed them and all Leaders of the Opposition who served during their appointment. The date is to be formatted in dd/mm/yyyy format. Order by ascending date of appointment.

You can choose to answer this question in two steps:

   a. List the title, name, date of appointment for Governors General of Australia who were appointed between 01 January 1930 and 01 January 1960. Order by ascending date of appointment.
   b. Together with the result of Q.4a, list the Prime Ministers who appointed them and all Leaders of the Opposition who served during their appointment. Order by ascending date of appointment.

5. Who are the Opposition Leaders who subsequently became Prime Minister after 1930 ? List their name, the date they were elected Opposition Leader and the date they were elected Prime Minister and their Deputy Prime Minister's name and the party that they led. The dates must be formatted as day of the week, day of the month, month in digits and year in four digits; eg. Monday, 01/01/1901. Order the list by ascending date of appointment as Opposition Leader.

6.. Who are the Prime Ministers who led a non-ALP party before 1930? List the Prime Ministers name, the year they commenced as Prime Minister, their party, their Deputy Prime Minister, the number of times that they were elected as Prime Minister and the title and name of the Governor General at the time they commenced office.

Reference no: EM13500840

Questions Cloud

What is the difference between pledging accounts receivable : The Signet Corporation has issued four-month commercial paper with a $6 million face value. The firm netted $5,870,850 on the sale. What effective annual rate is Signet paying for these funds?
Explain how much feo is produced moles of h2co2 : How much FeO is produced with 2.30 g FeS and .555 moles of H2CO2 if the reaction results in a 80.00% yield
Economic darwinism : Economic Darwinism (Thorstien Veblen). Need a 6 page (APA standard w/abstract & 4 references) explaining this term and a practical application with example.
Explain why are there axial and equatorial hydroxyl isomers : Why are there axial and equatorial hydroxyl isomers for 4-tert-butycyclohexanol, but not for cyclohexanol
Find all governors general of australia : Find all Governors General of Australia who were Barons at the time and Restrict your query to Governors General who were Barons at the time of their appointment
What is the difference between evergreen credit and : The Needy Corporation borrowed $10,000 from Bank Ease. According to the terms of the loan,Needy must pay the bank $400 in interest every three months for the three-year life of the loan,with the principal to be repaid at the maturity of the loan. Wha..
Write and execute sql definition commands : Write the SQL DDL to create the database that contains each of the relations shown in the above ERD and write and execute SQL definition commands
Advantages and disadvantages of writing a chemical equation : What are the advantages and disadvantages of writing a chemical equation with chemical symbols and formulas instead of just words?
A buffer was prepared by mixing a solution : A buffer was prepared by mixing a solution that is 0.285 M in HA and 0.385 in A-. The pH of this buffer was 4.435. then to 405 mL of this buffer solution was added to 21.5 mL of 2.0 M HCl. What is the pH of this new solution?

Reviews

Write a Review

Database Management System Questions & Answers

  How to use spool command

How to interactively query a database by using SQL statements and SQL*PLUS commands and how to use spool command to save an interactive session within SQL*PLUS.

  Create a table for patients with information

Create a table (by your own imagination) which comprises the least 25 patients with next information (columns): Calculate average of Value1 for each Gender.

  List all pair of products names which are in same city

List the names of agents that placed an order for customer C003 or customer C006. List all pair of products names that are in the same city, along with their city name.

  Explaining emp table does not have assigned primary key

Developers have noticed that EMP table doesn't have an assigned primary key. EMP_ID column has been selected to be the primary key.

  Build the physical model

She's come to you for questions regarding connectivity to the Oracle database, which method would you advise her to use to connect to the Oracle database?

  Design premiere products databas-shows relationship

Indicate changes you require to make to design of Premiere Products database to support following situation: There is no relationship between customers and sales reps.

  Create a report that dumps the contents of a table

A screen shot of the first page of the contents of each table. Alternatively, you may create a report that dumps the contents of a table and submit a single page of that report.

  Sketch diagram for data warehouse of shop by star schema

Assume that data warehouse for video game shop consists of th three dimensions: time, player, and game, and two measures number of games played and price paid per game. Sketch schema diagram for data warehouse using the star schema.

  Develop a complete system

The assignment will be chosen by the individual student with my approval. An ideal assignment will be one which involves at least four entity sets, but not too many since there will be critical time pressure to complete the assignment.

  Describe a minimum of three heuristics to optimize queries

Be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides; citations and references must follow APA or school-specific format. Check with your professor for any additional instructions.

  Construct an entity-relationship model for the database

Construct an entity-relationship (ER) model for the database. Make sure you include in your model details of entities, relationships, attributes, keys and limits in participation.

  Your database has been a hit you have been called back to

your database has been a hit. you have been called back to the customers headquarters and they want a detailed report

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