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

  Draw a context diagram for the fiat for football process

Draw a Context Diagram for the FIAT for Football process. Draw a top level Data Flow Diagram for the FIAT for Football method. Blow up any one non-trivial process into a first level Data Flow Diagram.

  Write a 2 page research paper on the turing and von neumann

write a 2 page research paper on the turing and von neumann models. compare and contrast each and discuss which model

  Draw a complete entity relationship model

Discuss any FOUR reports that would be generated from the data model - Draw a complete Entity Relationship (ER) model using data model notation that you are familiar.

  Illustrate the normalized form for patient order

Illustrate the normalized form for PATIENT ORDER. Reflect on the issues you encountered as you attempted to normalize the list. Consider the consequences of not normalizing data.

  Design a relational database so that it is at least in 3nf

Explain typical situations when denormalizing a table is acceptable. Provide one (1) example of denormalizing a database table to justify your response.

  How will your team c

What steps will your team take if you need to seize any digital evidence and What documentation processes will you follow to help support any potential legal proceedings?

  What means are available to control integrity of fields

Research and provide two to three pages covering the following: How do you decide on how a specification for a field will be determined? Why do you select a specific field type? Why are field values coded or compressed

  Explain how to create query in access query wizard

Describe how to create a query in Access Query Wizard equilvant to the query: SELECT first, last, department, hours FROM payroll WHERE hours>.

  Create database tables with appropriate field-naming

Identify and create database tables with appropriate field-naming conventions. Then, identify primary keys and foreign keys, and explain how referential integrity will be achieved.

  Unique identifiers and normalization

Identifying Relationships.Unique Identifiers and Normalization

  What must a user guarantee with respect to a transaction and

What must a user guarantee with respect to a transaction and database consis-tency? What should a DBMS guarantee with respect toconcurrent execution of several transactions and database consistency?

  Completing transaction using sql

Write down the complete transaction using SQL.

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