Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

Make the menagerieGIS database using petGIS.sql

Look at the petGIS.png to see where the pets are.

1. Display the name, astext location, X and Y values of each pet

2. Display the pets with their location displayed in standard form of (X,Y)

3. Display the pets in order of X coordinate by Y coordinate

4. Pretend in the coordinate system that up/top is north, right is east, down/bottom is south, and left is west. Show the northernmost, southernmost, easternmost, and westernmost pets.

5. The centroid of the points, displayed as a point in standard form (X,Y) with each coordinate rounded to an integer. Alias: 'centroid'.
Hint: Use the concat function to build up a string concat(string1,string2,...)

6. The number of pets in the rectangle bounded by x=20 x=40 y=20 and y=60

7. The pets that are in the grid square whose X is between 100 and 150 and whose Y is between 300 and 350.

8. List the pets in order of distance from the origin.

9. The pet farthest from the origin (0,0)

10. The average distance from the orgin

11. The average distance from the orgin of each species

12. Use a variable (i.e. set command) for the centroid's X value. Use another variable (i.e. set command) for the centroid's Y value.
Display them.

13. Distance of each pet from the centroid. Hint: use the variables.

14. The pet closest to the centroid

15. The average distance of a pet from the centroid Centroid is the point that minimizes the sum of distances to all points.

16. Run the self-join that finds the distance between every pair of points. Modify it to find the pair of pets that is farthest apart.

17. Modify it to tell just the maximum distance.

18. Run the self-join that finds pets at same location.

b. What happens if in this self-join the < is replaced by a !=?

c. What happens if in this self-join the < clause is removed?

19. Using a Set variable, display the pets who are more than the average distance from the origin.

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M92065073

Have any Question? 


Related Questions in DBMS

Sql transactions exercisesconsider table itemnameprice

SQL Transactions Exercises Consider table Item(name,price) where name is a key, and the following two concurrent transactions. T1: Begin Transaction; Update Item Set price = 2*price Where name = 'pencil'; Insert Into Ite ...

Database design amp development assignment -assignment

Database Design & Development Assignment - Assignment title - Design and Implement a Relational Database for a local Print and Ink Refill Business. Learning Outcome - Use an appropriate design tool to design a relational ...

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 ...

Question talk about the importance of pulling data from

Question : Talk about the importance of pulling data from worksheets into a single sheet also the ways excel could be a solution to a complex challenge. The response must be typed, single spaced, must be in times new rom ...

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 ...

Assignmenta restaurant is designing a database to keep

Assignment A restaurant is designing a database to keep track of customer services. A customer is defined as a customer ID, name, address and a telephone number. Customers are served by employees. Each employee is define ...

Question 1 unified communications system eg email

Question: 1. Unified Communications System (e.g., email, conferencing, and messaging) - The local area network is slower than needed, especially for newer, cloud-based applications. The email system needs refurbishment a ...

Relational database exerciseyou have been assigned to a new

Relational Database Exercise: You have been assigned to a new development team. A client is requesting a relational database system to manage their present store with the anticipation of adding more stores in the future. ...

Data mining assignment -in this assignment you are asked to

Data Mining Assignment - In this assignment you are asked to explore the use of neural networks for classification and numeric prediction. You are also asked to carry out a data mining investigation on a real-world data ...

Real time analytics - data analytics assignment -this is a

Real Time Analytics - Data Analytics Assignment - This is a business analytics project aimed at generating innovative analytics solutions for a Global Food Consulting firm working in the area of Animal agriculture and fa ...

  • 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