AGGREGATE FUNCTIONS


Exercise  - modify an existing query

             WHERE ShippedQuarter like "*1"

Run the query and compare the results with the original Category Sales for 1997 - all totals should be substantially lower.

            HAVING Sum(ProductSales) > 20000

 

Note:  No need to include the table or query name – the ProductSales column only appears in one of the tables or queries.


Run the query and compare the results with the previous query - only 4 values are selected.



Exercises using other aggregate functions

 

(Note:  None of these exercises require more than one table.)

            Modify the original freight query:  Average freight by shipper for freight above $75

            Modify the original freight query:  Average freight by shipper showing only averages above $75


            Find duplicate (or more) product listings in Order Details.

            Find duplicate (or more) product-price pairings (same product and price) in Order Details

            (Compare with Find Duplicates wizard in each case)