|
| 1 | +<!-- 1. Topic sentences ---------------------------------------------------------------------------------- |
| 2 | + Goal: Orient the learner to the area covered in this module. |
| 3 | +
|
| 4 | + Heading: None |
| 5 | +
|
| 6 | + Example: "Good cybersecurity relies on many factors to provide confidence and assurance that your data |
| 7 | + is safe and being used as expected." |
| 8 | +
|
| 9 | + Recommended: Add a visual like an image, table, or list that supports the topic sentences. |
| 10 | +
|
| 11 | + Detailed guidance: `https://review.learn.microsoft.com/help/learn/id-guidance-introductions?branch=main#module-introduction` |
| 12 | +--> |
| 13 | +Understanding how to summarize and categorize data is essential for extracting insights from relational databases. In PostgreSQL, aggregate functions combined with `GROUP BY` and `HAVING` clauses provide powerful tools for analyzing trends, computing totals or averages and filtering grouped results. These techniques form the backbone of meaningful data reporting and help transform raw data into actionable information. |
| 14 | + |
| 15 | +<!-- 2. Motivation --------------------------------------------------------------------------------------- |
| 16 | +
|
| 17 | + Goal: Explain why the concepts that the module covers are important and how they're used. Consider |
| 18 | + posing a question or describing a challenging situation. |
| 19 | +
|
| 20 | + Heading: None |
| 21 | +
|
| 22 | + Example: "In the early years of computing systems, every application stored data in its own unique |
| 23 | + structure. When developers wanted to build applications to use that data, they had to know |
| 24 | + a lot about the data structure to find the data they needed. These structures were |
| 25 | + inefficient, hard to maintain, and hard to optimize for good application performance. The |
| 26 | + relational database model was designed to solve the problem of multiple arbitrary data |
| 27 | + structures. The relational model provides a standard way of representing and querying |
| 28 | + data that can be used by any application." |
| 29 | +--> |
| 30 | +<!-- 4. Prose table of contents -------------------------------------------------------------------------- |
| 31 | +
|
| 32 | + Goal: List the activities that the learner does in this module. The prose table of contents differs |
| 33 | + from the title and the learning objectives. The title and the learning objectives are outcome- |
| 34 | + focused. They describe the skills the learner acquires as a result of consuming this content. |
| 35 | + In contrast, the prose table of contents states specifically what the learner **does** in order |
| 36 | + to acquire those skills. The format can be either prose or a bulleted list. But a list yields |
| 37 | + better results when transformed into other output types such as PowerPoint. |
| 38 | +
|
| 39 | + Heading: "## What will we be doing?" |
| 40 | +
|
| 41 | + Example: "In this module, we'll formally define several cybersecurity concepts like authentication |
| 42 | + and authorization. Then we'll put the concepts into context by describing some common |
| 43 | + authentication-based attacks. We'll also define some effective authorization security techniques." |
| 44 | +--> |
| 45 | + |
| 46 | +## What to expect? |
| 47 | + |
| 48 | +In this section, you explore how to summarize and analyze data in PostgreSQL using aggregate functions like `COUNT`, `SUM`, `AVG`, `MIN` and `MAX`. You learn how to group data with the `GROUP BY` clause and filter grouped results using `HAVING`. Through hands-on examples with the `sales` database, you gain the skills needed to extract meaningful insights from large datasets by turning detailed records into clear, summarized reports. |
| 49 | + |
| 50 | +<!-- 5. Terminal learning objective ---------------------------------------------------------------------- |
| 51 | +
|
| 52 | + Goal: Restate the module title as a complete sentence. You have more room here to convey the main goal |
| 53 | + than in a space-limited title. Make it outcome-focused so it describes the main skills and |
| 54 | + knowledge the learner acquires as a result of the training. Answer the question "What is the |
| 55 | + foundational knowledge the user gains as a result of consuming this training?" |
| 56 | +
|
| 57 | + Heading: "## What is the main goal?" |
| 58 | +
|
| 59 | + Example: "By the end of the module, you'll have a comprehensive understanding of core cybersecurity concepts." |
| 60 | +--> |
| 61 | + |
| 62 | +## What is the main goal? |
| 63 | + |
| 64 | +The main goal of this section is to help you master the use of aggregate functions and grouping techniques in SQL to summarize, analyze, and filter data effectively. By learning how to apply `GROUP BY` and `HAVING` in combination with functions like `COUNT`, `SUM`, and `AVG`, you're able to turn raw data into actionable insights, making your queries more powerful and relevant for real-world analysis. |
0 commit comments