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.
Show for each zoo the number of different species represented by its captive animals.
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.
List the detail of animals that are in captivity in any zoo whose mother is currently in the
Show for each zoo in Canada a count of captive animals. Sequence the output by highest
to lowest count
Show for each species a count of the experts that are employed by zoos in the USA
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
List the details for all animals born in captivity in 2006 that belong to an endangered
species (status = E)
List the details for the zoos in China that have more than 2 animals that belong to the
List the names, gender and salaries of all male employees that are the world?s best expert
for a threatened species (status = T)
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
--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
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
--17 List the details for any endangered species for which there are more than 4 animals in
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.
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.
This question was answered on: Sep 18, 2020
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 .
About this QuestionSTATUS
Sep 18, 2020EXPERT
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).
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.