Presentation is loading. Please wait.

Presentation is loading. Please wait.

IFS180 Intro. to Data Management Chapter 13 – Grouping Data.

Similar presentations


Presentation on theme: "IFS180 Intro. to Data Management Chapter 13 – Grouping Data."— Presentation transcript:

1 IFS180 Intro. to Data Management Chapter 13 – Grouping Data

2 Why group data? How do aggregate functions (MIN / MAX / SUM) compare? Grouping data is performed on given column name(s)

3 Chapter 13 – Grouping Data GROUP BY Clause: Functions with the logical table (i.e. the result set) created by the From and the Where clause Specify the column name(s) from the result set to group by Clause: GROUP BY column reference,….. Limitations. When mixing aggregate functions and column references, must list all column names in the group by clause. Table order is also important.

4 Chapter 13 – Grouping Data Example. What is the team average in the bowling league? Example. What is the accuracy of the bowlers average in the bowlers table?

5 Chapter 14 – Filter Grouped Data Accomplished by Having clause Punctuation Having search condition Restrictions Columns must be named in the Group By clause or be an aggregate function column in the select statement

6 Chapter 14 – Filtering Group Data Example. What is the accuracy of the bowlers average in the bowlers table and only include those bowlers with over 7000 pins? Example. What is the average of the bowlers that live in Duvall with a total score greater than or equal to 7000?


Download ppt "IFS180 Intro. to Data Management Chapter 13 – Grouping Data."

Similar presentations


Ads by Google