Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use the Prime Minister database (Prime_Minister_2000.sql) which is available in ITC114 subject Interact site. Write and run SQL statements to complete the following tasks List
Use the Prime Minister database (Prime_Minister_2000.sql) which is available in ITC114 subject Interact site.
Write and run SQL statements to complete the following tasks
List the name of the states and the number of prime minister from each state. (3 marks)
- List the name of the deputy prime ministers and the number of times served as a deputy prime minister where a deputy prime minister served more than once (3 marks)
- Did anyone become a Prime Minister where the difference commencement year (yr_comm) and birth year (birth_yr) is greater than or equal to 65? If so, then please list the name of Prime Minister, the party that they led, birth year, and commencement year. (3)
For each Prime Minister that did not lead either Labor or Liberal government, had less than four children and enjoyed "cricket", "racing", "swimming", "tennis as recreation, list their name, party, recreation(s), name of their spouse and number of children. (3 marks)
- List the Prime Minister Name, Deputy Prime Minister name, and the party that they led where Prime Minister and Deputy Prime Minister from the same party but not from Labor and they served more than once. (3 marks)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started