1 / 10

Advanced Query Analysis

Advanced Query Analysis. IS240 – DBMS Supplement to Chapter 5 M. E. Kabay, PhD, CISSP-ISSMP Assoc. Prof. Information Assurance Division of Business & Management, Norwich University mailto:mkabay@norwich.edu V: 802.479.7937. Topics.

bena
Download Presentation

Advanced Query Analysis

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Advanced Query Analysis IS240 – DBMS Supplement to Chapter 5 M. E. Kabay, PhD, CISSP-ISSMP Assoc. Prof. Information AssuranceDivision of Business & Management, Norwich University mailto:mkabay@norwich.edu V: 802.479.7937

  2. Topics • Sally’s Pet Store: Problem 5-01 • Start with Calculation of Order Values • Save the Query • Document the Query • Query is Saved • Then Use the Stored Query in the Complete Query • Use TOP operator to Restrict Output

  3. Sally’s Pet Store: Problem 5-01 • Which supplier has the highest average percentage of shipping cost per value of merchandise order? • First, compute the value of each order • Store the query as Query05_01a • Then use the synthetic table of values from Query05_01a to prepare a new synthetic table • Combines the supplier info with the order info • Allows computation of percentage • Sort data

  4. Start with Calculation of Order Values

  5. Save the Query

  6. Document the Query

  7. Query is Saved

  8. Then Use the Stored Query in the Complete Query

  9. Use TOP operator to Restrict Output

  10. DISCUSSION

More Related