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

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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