Ask PL-SQL Expert

Given the attached physical schema in Assign2P18ERD undertake the following:

1. Using SQL Server create a database called Assign2P18

2. Define all primary keys, foreign keys and data

3. Populate the tables with sufficient data to adequately test all aspects of your queries.

4. Develop the SQL queries to satisfy the questions below.

No views should be employed here. While no question would require it you may use dynamic temporary tables as a technique.

1. Show for each species a count of the experts that are employed by zoos in the USA.

2. List the zoo name, employee name, salary and start date of each employee that is a world's best expert for a species. Sequence the output by employee name within zoo name.

3. Show the name of any country that has the more than 2 zoos.

4. Show for each zoo in Canada a count of animals held. Sequence the output by highest to lowest count.

5. Show for each zoo the number of different animal species it holds.

6. List the details for employees in Canadian zoos with a salary of at least 95000 or with an expertise in the Tiger species. Sequence the output by employee name.
7 List the details of zoos that hold more than 2 Lions born in captivity in 2016

8. List the details for the zoos in China that have more than 3 animals that belong to the Panda species.

9. List the names, gender, salaries and start dates of all male employees that are the world's best expert for an endangered species (status = E).

10. List the details for the zoo that has the employee with the highest salary in any zoo.

11. List the details for any species for which there are animals held in any zoo in China.

12. List the details for the zoos that have animals belonging to more than 4 different species.
Sequence the output alphabetically by zoo within city.

13. List details for the animals that have a mother that is held in a zoo that is different from their child's current zoo.

14. List the detail of animals that are in any zoo but whose mother is currently a Boston city zoo.

15. List the species details for the species that have a world's best expert working in a zoo in the USA that also holds animals of that same species. Show each species only once.

16. List the details for the tiger expert employee that has the highest salary for their expertise.

17. List the details for any endangered species which have 3 or more animals held in the "Metro Toronto" zoo.

18. List the details for all animals born in captivity in 2016 that belong to an endangered species (status = E).

19. Show the count of how many species experts are employed at the "Metro Toronto" zoo.

20. List the details of mothers that have more than 2 offspring that are held in Canadian zoos

Note: Queries that do not return sufficient data will lose marks. If no output is generated that query will receive a zero.

PL-SQL, Programming

  • Category:- PL-SQL
  • Reference No.:- M93046815
  • Price:- $215

Guranteed 48 Hours Delivery, In Price:- $215

Have any Question?


Related Questions in PL-SQL

Complete the following tasksin microsoft access create the

Complete the following tasks: In Microsoft Access, create the database and tables that you identified in W3 Assignment 2. In Microsoft Word, write the SQL statements to create the database and tables. Write SQL statement ...

Purpose of the assessment with ulo mapping the purpose of

Purpose of the assessment (with ULO Mapping) The purpose of this assignment is to develop skills in managing data in databases and to gain understanding of data model development and implementation using a commercially a ...

Continuing the project you have worked on in weeks 1-4 in

Continuing the project you have worked on in Weeks 1-4, in this final week, complete the following tasks: Refine your database and SQL statements by incorporating your instructor's feedback. Verify that the database comp ...

For this assignment you will be provided a database backup

For this assignment, you will be provided a database backup for a database called FinanceDB. You will have to restore this backup to your own version of SQL Server. All of the questions in this assignment relate to the F ...

Assignment - queries functions and triggersaimthe aims of

Assignment - Queries, Functions and Triggers Aim The aims of this assignment are to: formulate SQL queries; populate an RDBMS with a real dataset, and analyse the data; design test data for testing SQL queries; create SQ ...

  • 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

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As