Display the name astext location x and y values of each pet

Assignment Help Database Management System
Reference no: EM131310451

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.

Reference no: EM131310451

Questions Cloud

Describe the key activities that the cio should be engaged : List three positive and three negative impacts of social networking. In your opinion, determine whether the positive impacts outweigh the negative impacts for a company determined to increase company awareness. Describe the role of the CIO in rela..
Calculate the ratios along with the formula : Calculate the ratios along with the formula.- Under each calculation explain what the ratios indicate about the company's financial condition.
Write a java application to store pairs of unique colors : Write a Java application that effectively uses Java collections to store pairs of unique colors and their unique hexadecimal values. For example, "Red" -> "FF0000". Store at least 8 and up to 20 of these pairs.
Compute the monthly payment on a loan : James wants to buy a motorcycle. Help James compute the monthly payment on a loan, given the loan amount, the annual percentage rate of interest, and the number of monthly payments.
Display the name astext location x and y values of each pet : CMIS 320: Make the menagerieGIS database using petGIS.sql- Display the name, astext location, X and Y values of each pet. Display the pets with their location displayed in standard form of (X,Y). Display the pets in order of X coordinate by Y coordin..
Configure performance monitor efficiently : To configure performance monitor efficiently, it takes some understanding. What resources do you have available to you to learn more about the tool?
Summarize the different types of data storage technology : Compare and contrast the types and role of distributed software architecture.Discuss common input / output technologies.Summarize the different types of data storage technology.Use technology and information resources to research issues in enterprise..
Where do you think cpp and coding games in cpp is headed : Where do you think C++ and coding games in C++ is headed in the next five years? How about in the next 10 years? Do you think there are any significant improvements that need to be made to the code to ensure its stability in an ever-changing techn..
Create a graphical representation of your architecture : Explain what type of architecture the new payroll application should use and why.Identify what types of technology will be involved in the architecture and explain the purpose of each technology. Create a graphical representation of your recommended ..

Reviews

Write a Review

Database Management System Questions & Answers

  Write a program to calculate the tax of an employee

Write a program to calculate the tax of an employee whose employee number is input from the keyboard. Display an appropriate error message if the data does not exist in the Emp table.

  Determine an effective sampling online database

Select a company from one of the Rasmussen online databases, such as Hoover's, Mergent Online, or the Harvard Business School library. Build a set of at least 40 effective measurement questions keeping in mind the content, participants and the out..

  Write a select statement that joins the categories table

Write a SELECT statement that joins the Categories table to the Products table and returns these columns: CategoryName, ProductName, ListPrice.

  Design a set of 3nf tables for your database scenario

Draw an ER diagram for your database scenario. Design a set of 3NF tables for your database scenario.

  Suppose we have a relation employees ssn name department

suppose we have a relation employees ssn name department salary.nbspfor each of the following queries either write the

  Which three application transactions must be made atomic

Which of the three application transactions must be made atomic (e.g., specify transaction boundaries) to prevent possible lost update? Why and why not?

  Write a paper describing project management lifecycle

Write a paper describing Project management lifecycle and Systems Delivery lifecycle.Your paper must contain two well-formed paragraphs (a topic sentence supported by three to four additional sentences).

  Explain what is the importance of data entry validation

Preserving the integrity of the data that enters into and is stored within a database is extremely important. What is the importance of data entry validation and does MS Access offer any features for validation

  Create a database of all seats and flights

Create a database of all seats and flights and keep track of sold/unsold of all 4 categories of seats - Show cost of chosen seat/flight combo options

  Edinburgh airport officials are concerned about complaints

edinburgh airport officials are concerned about complaints received by the service department and are about to do an

  Describe the six default referential integrity actions.

How are N:M relationships implemented?

  Prepare the layout for the buysell database- the general

chris and pat aquino own a successful isp internet service provider and want to expand their business to host an

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd