Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

Database - Assignment

Background

You will be working with a set of tables for a mobile. To access these tables in oracle create the following synonyms:

SQL> CREATE SYNONYM ANIMAL FOR VBRUNO.ANIMAL;

SQL> CREATE SYNONYM KEEPER FOR VBRUNO.KEEPER;

SQL> CREATE SYNONYM CAGE FOR VBRUNO.CAGE;

SQL> CREATE SYNONYM SPECIE FOR VBRUNO.SPECIE;

SQL> CREATE SYNONYM FED FOR VBRUNO.FED;

SQL> CREATE SYNONYM FOOD FOR VBRUNO.FOOD;

Assignment Exercise

You are to prepare 15 SQL query statements that will provide answers to the following 15 requests for information.

You must submit the syntax of the queries themselves, not all the output.

1. Show a list of all the "Female" animals, that are "White", and are located in a cage whose location starts with an "A", "B", or "V". Just show the name of the animal.

2. Create a list of animals that are "Brown" in colour and less than 2 years old. Show the animal name and species name.

3. Create a view that lists all the animals that eat "straw". Show the animal no, animal name and scientific name.

4. Show the detail for cage number 147, also show the name of the animals in this cage, along with the keeper that looks after the cage, and the keeper that looks after each animal in the Include the species name for each animal in cage.

5. List all keepers from a suburb that has "WEST" in the name, who look after White animals from the snakes species. Show the keeper's full name and the animal name.

6. List all keepers that earn more than $37,000 a year at the zoo. Show the keepers name, the total salary for a year (assume 38hrs week) and the number of years they have worked at the zoo.

7. List all the cages whose size is "S"mall. Show the cage details and the name of the keeper who cleans it.

8. List all the cages that do not have any animals in them. Show all the cage details.

9. List for each MONTH of the year, how many animals are having their birthday.

10. List each of the keepers who are both vets and cleaners (‘A'). Show the keeper's name, age, how long they have worked at the zoo and their supervisor's name.

11. Create a list of each food bought by the zoo and a sum of the total quantity of each food used per day.

12. Show all the cages with six animals or more. Show the cageno, cage size, cage cost and cage location along with the keepers full name who cleans the cage.

13. For each keeper, show the number of cages cleaned by the keeper and the total cost of the cages cleaned for each keeper. Make sure you show the keeper's name. Show the highest total cost first and the lowest last on the list.

14. Need to show all the details related to a particular cage, just like in question 12, except that it must be the cage(s) that has the MOST animals in it only.

15. Create your own query. It must include a nested query. Submit the following:

a) question your query is answering

b) the SQL query

2176_Table description for the zoo database.png

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M91420702
  • Price:- $80

Priced at Now at $80, Verified Solution

Have any Question?


Related Questions in DBMS

Assignment question - write and run sql statements to

Assignment Question - Write and run SQL statements to complete the following tasks Part A - DML 1. Locate the record in the vendor table that does not have a value for the attribute V_STATE 2. Find the customers whose ba ...

Football association of zambia faz super leaguethe faz has

Football Association of Zambia (FAZ) Super League The FAZ has recently decided to reorganise their operations to support both existing and possibly expanded league operations in Zambia and part of preparation for the 201 ...

Databases assignment - monash library services monlib case

Databases Assignment - Monash Library Services (MonLib) Case Study TASK 1: Data Definition For this task you are required to complete the following: 1.1 - Add to your solutions script, the CREATE TABLE and CONSTRAINT def ...

Sqlquery 1 how many products have standard price less than

SQL Query 1. How many products have standard price less than 1000? Query 2: Display all attributes for products made of "Cherry" from Product table w/o referring to column names. Query 3: Display all product names having ...

Question find at least two academic sources that describe

Question: Find at least two academic sources that describe the movement of Enterprise resource planning (ERP) activities to the cloud. Discuss the types of ERP activities that can be conducted in the cloud and the pros a ...

Question team project submission - submit to the unit 4

Question: Team Project Submission - Submit to the Unit 4 Group Project Area This version of the capstone project assignment is FOR GRADING this week. Submit to the group area the document containing completed Sections On ...

Select from e d pwhere edeptddept and dcitypcity and

Select * From E, D, P WHERE E.dept=D.dept AND D.city=P.city AND D.budget>1M AND P.priority=A; Assuming relations have the same size and uniform distributions, what is the best plan with Nested Loop joins only? Write it a ...

Sql query assignment -for this assignment you are to write

SQL Query Assignment - For this assignment you are to write your answers in a word document. This assignment is in three parts: Part A (reporting queries), Part B (query performance), Part C (query design). For this assi ...

In sql developer onlydeliverables include sql scripts and

In SQL Developer ONLY! Deliverables Include SQL scripts and screenshot of the results: D1. Create the following three user-defined roles that are shown in the table below and assign them the specified permissions for the ...

You can work on this assignment individually or in a group

You can work on this assignment individually or in a group of 2. If you are working in a group please establish a group in Assignment 2 Group on Canvas In this assignment you are asked to explore the use of neural networ ...

  • 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