Question Details

Answered: - Do this part for me for the offer please. Thats all i have


Do this part for me for the offer please. Thats all i have left ?:(


Given the attached physical and logical ERD in Assign2 undertake the following:

 

1. Using SQL Server create a database called Assign2

 

2. Define all primary keys, foreign keys and data types (20 marks)

 

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

 

below). Failure to do so will lose you marks

 

4. Develop the SQL queries to satisfy the questions below ? 80 marks.

 

No views should be employed in this assignment. While no question would require it you may

 

use dynamic temporary tables as a technique.

 

--1.

 


 

Show for each zoo the number of different species represented by its captive animals.

 


 

--2.

 

List the zoo name, employee name and salary of each employee that is a world?s best

 

expert in a species. Sequence the output by employee name within zoo name.

 

--3.

 

List the detail of animals that are in captivity in any zoo whose mother is currently in the

 

Boston zoo

 

--4.

 

Show for each zoo in Canada a count of captive animals. Sequence the output by highest

 

to lowest count

 

--5.

 


 

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

 


 

--6.

 

List the details for employees in any zoo in Canada with a salary of at least 75000 or with

 

an expertise in the Tiger species. Sequence the output by employee name

 

--7.

 

List the details for all animals born in captivity in 2006 that belong to an endangered

 

species (status = E)

 

--8.

 

List the details for the zoos in China that have more than 2 animals that belong to the

 

Tiger species

 

--9.

 

List the names, gender and salaries of all male employees that are the world?s best expert

 

for a threatened species (status = T)

 

--10.

 


 

List the details of the zoo that has the employee with the highest salary in any zoo

 


 

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

 

China

 

--12. List the details for the zoos that have captive animals belonging to more than 3 different

 

species. Sequence the output alphabetically by zoo within city

 


 

--13. List details for the animals that have a mother that is captive in a zoo that is different

 

from their child's current zoo

 

--14.

 


 

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

 


 

--15. List the species details for the species that have a world?s best expert working in a zoo in

 

the USA that also has captive animals of that same species. Show each species only once

 

--16. List the details for the employee that has the lowest salary for an expert in the Tiger

 

species

 

--17 List the details for any endangered species for which there are more than 4 animals in

 

Canadian zoos.

 

--18

 


 

List the details of any zoo that has more than 3 Tigers born in 2015

 


 

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

 

--20 List the details of mothers that have more than 2 offspring in total in all Canadian zoos

 

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

 

query will receive a zero.

 

i)

 

ii)

 

iii)

 

iv)

 

v)

 


 

All queries must generate some output

 

Queries with explicit sequencing (order by clause) must return a minimum of 3 rows

 

An aggregate query must have at least one row of output that is using at least 2 input

 

rows (e.g. a count of 2, not 0 or 1)

 

Use column aliases where appropriate.

 

Suppress duplicate rows where appropriate for output based on your actual test data

 

results even if not specifically requested by the question.

 


 

 


Solution details:
STATUS
Answered
QUALITY
Approved
ANSWER RATING

This question was answered on: Sep 18, 2020

PRICE: $15

Solution~0001185675.zip (25.37 KB)

Buy this answer for only: $15

This attachment is locked

We have a ready expert answer for this paper which you can use for in-depth understanding, research editing or paraphrasing. You can buy it or order for a fresh, original and plagiarism-free copy from our tutoring website www.aceyourhomework.com (Deadline assured. Flexible pricing. TurnItIn Report provided)

Pay using PayPal (No PayPal account Required) or your credit card . All your purchases are securely protected by .
SiteLock

About this Question

STATUS

Answered

QUALITY

Approved

DATE ANSWERED

Sep 18, 2020

EXPERT

Tutor

ANSWER RATING

GET INSTANT HELP/h4>

We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.

You can also use these solutions:

  • As a reference for in-depth understanding of the subject.
  • As a source of ideas / reasoning for your own research (if properly referenced)
  • For editing and paraphrasing (check your institution's definition of plagiarism and recommended paraphrase).
This we believe is a better way of understanding a problem and makes use of the efficiency of time of the student.

NEW ASSIGNMENT HELP?

Order New Solution. Quick Turnaround

Click on the button below in order to Order for a New, Original and High-Quality Essay Solutions. New orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.

WE GUARANTEE, THAT YOUR PAPER WILL BE WRITTEN FROM SCRATCH AND WITHIN YOUR SET DEADLINE.

Order Now