Question Description
-
Exercise 26: interpreting the Query Planner
Attached Files:
- Exercise26.sql (416 B)
Using the sqlda database, complete exercise 26. The queries for this exercise are attached. If you run the queries from PGADMIN, you do not need the ‘sqlda=#’ prompt. shown in the text. Submit a Word file with a screenshot of two query plans from the exercise. Comment your images with a sentence or so of description in your own words of what you are doing. Please make sure that your images are large enough and high enough resolution for the reader to see the text in your queries and the results.
Activity 10: Query Planning
Using the sqlda database, complete Activity 10 in the text. Submit a Word document with the answers to the questions in steps 3,4, and 5. Comment your images with a sentence or so of description in your own words of what you are doing. Please make sure that your images are large enough and high enough resolution for the reader to see the text in your queries and the results.
Activity 10a: Query Plan (extra credit/not required)
Using sqlda, complete Activity 10 using psycopg2. Submit a Word document with the answers to steps 3,4,5 and submit a screenshot of yhur Python code. Comment your images with a sentence or so of description in your own words of what you are doing. Please make sure that your images are large enough and high enough resolution for the reader to see the text in your queries and the results.
Exercise 27: Indexes
Attached Files:
- Exercise27.sql (2.201 KB)
In this exercise, you will be showing that indexes can greatly improve the performance of a query. Do Exercise 27 from the book. The sql code is attached. Submit a Word document with a screenshot showing whether the index has optimized the search. Highlight the answer. Comment your images with a sentence or so of description in your own words of what you are doing. Please make sure that your images are large enough and high enough resolution for the reader to see the text in your queries and the results.