Skip to content

Commit 96a293b

Browse files
Merge pull request #50540 from MicrosoftDocs/release-postgresql-playground
[Squash merge] [Release branch to main] New PostgreSQL Playground learn path
2 parents 9d95436 + 2382702 commit 96a293b

File tree

63 files changed

+7769
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+7769
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl-azure.basic-sql-aggregate-functions-grouping.introduction
3+
title: Introduction
4+
metadata:
5+
title: Introduction
6+
description: "This unit introduces the importance of data summarization and analysis using aggregate functions in PostgreSQL. It explains how GROUP BY and HAVING clauses support meaningful reporting by transforming raw data into actionable insights."
7+
ms.date: 05/14/2025
8+
author: milenak
9+
ms.author: mpopovic
10+
ms.topic: unit
11+
###########################################################################
12+
###
13+
### If your content is related to a product or service, apply one value from
14+
### the ms.service allowlist.
15+
###
16+
### If your content isn't about a product or service, you can omit the ms.service field.
17+
###
18+
### For the list of approved ms.service values, go to
19+
### https://review.learn.microsoft.com/help/platform/metadata-taxonomies?branch=main#msservice.
20+
###
21+
### To request new values, go to
22+
### https://review.learn.microsoft.com/help/platform/metadata-reporting-taxonomy-requests?branch=main.
23+
durationInMinutes: 1
24+
content: |
25+
[!include[](includes/1-introduction.md)]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl-azure.basic-sql-aggregate-functions-grouping.sample-database-overview
3+
title: Sample database
4+
metadata:
5+
title: Sample database overview
6+
description: "This unit introduces the structure and purpose of the sales sample database used throughout the module. It describes the key tables, their relationships via foreign keys, and how the database supports tracking orders, inventory, and customer activity. A schema diagram and SQL script are provided to help learners explore and understand the data model."
7+
ms.date: 05/14/2025
8+
author: milenak
9+
ms.author: mpopovic
10+
ms.topic: unit
11+
###########################################################################
12+
###
13+
### If your content is related to a product or service, apply one value from
14+
### the ms.service allowlist.
15+
###
16+
### If your content isn't about a product or service, you can omit the ms.service field.
17+
###
18+
### For the list of approved ms.service values, go to
19+
### https://review.learn.microsoft.com/help/platform/metadata-taxonomies?branch=main#msservice.
20+
###
21+
### To request new values, go to
22+
### https://review.learn.microsoft.com/help/platform/metadata-reporting-taxonomy-requests?branch=main.
23+
durationInMinutes: 5
24+
content: |
25+
[!include[](includes/2-sample-database-overview.md)]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl-azure.basic-sql-aggregate-functions-grouping.aggregate-functions
3+
title: Aggregate Functions
4+
metadata:
5+
title: Aggregate Functions
6+
description: "This unit introduces key SQL aggregate functions such as COUNT, SUM, AVG, MIN, and MAX in the context of PostgreSQL. It explains how each function works through examples using the sales database, helping learners summarize and analyze data by calculating totals, averages, and identifying extreme values."
7+
ms.date: 05/14/2025
8+
author: milenak
9+
ms.author: mpopovic
10+
ms.topic: unit
11+
###########################################################################
12+
###
13+
### If your content is related to a product or service, apply one value from
14+
### the ms.service allowlist.
15+
###
16+
### If your content isn't about a product or service, you can omit the ms.service field.
17+
###
18+
### For the list of approved ms.service values, go to
19+
### https://review.learn.microsoft.com/help/platform/metadata-taxonomies?branch=main#msservice.
20+
###
21+
### To request new values, go to
22+
### https://review.learn.microsoft.com/help/platform/metadata-reporting-taxonomy-requests?branch=main.
23+
durationInMinutes: 4
24+
content: |
25+
[!include[](includes/3-aggregate-functions.md)]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl-azure.basic-sql-aggregate-functions-grouping.group-by-having
3+
title: GROUP BY and HAVING
4+
metadata:
5+
title: GROUP BY and HAVING
6+
description: "This unit explains how to use the GROUP BY and HAVING clauses in PostgreSQL to categorize data and filter grouped results. Learners explore how to combine these clauses with aggregate functions to analyze trends and summarize information within distinct groups. Practical examples from the sales database illustrate how to generate meaningful reports from raw data."
7+
ms.date: 05/14/2025
8+
author: milenak
9+
ms.author: mpopovic
10+
ms.topic: unit
11+
###########################################################################
12+
###
13+
### If your content is related to a product or service, apply one value from
14+
### the ms.service allowlist.
15+
###
16+
### If your content isn't about a product or service, you can omit the ms.service field.
17+
###
18+
### For the list of approved ms.service values, go to
19+
### https://review.learn.microsoft.com/help/platform/metadata-taxonomies?branch=main#msservice.
20+
###
21+
### To request new values, go to
22+
### https://review.learn.microsoft.com/help/platform/metadata-reporting-taxonomy-requests?branch=main.
23+
durationInMinutes: 4
24+
content: |
25+
[!include[](includes/4-group-by-having.md)]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl-azure.basic-sql-aggregate-functions-grouping.summary
3+
title: Summary
4+
metadata:
5+
title: Summary
6+
description: "This unit summarizes key concepts related to aggregate functions and grouping in PostgreSQL. It reinforces the use of COUNT, SUM, AVG, MIN, MAX, and the GROUP BY and HAVING clauses to perform data analysis and generate meaningful summaries. Learners review the core techniques needed to extract insights from relational databases."
7+
ms.date: 05/14/2025
8+
author: milenak
9+
ms.author: mpopovic
10+
ms.topic: unit
11+
###########################################################################
12+
###
13+
### If your content is related to a product or service, apply one value from
14+
### the ms.service allowlist.
15+
###
16+
### If your content isn't about a product or service, you can omit the ms.service field.
17+
###
18+
### For the list of approved ms.service values, go to
19+
### https://review.learn.microsoft.com/help/platform/metadata-taxonomies?branch=main#msservice.
20+
###
21+
### To request new values, go to
22+
### https://review.learn.microsoft.com/help/platform/metadata-reporting-taxonomy-requests?branch=main.
23+
durationInMinutes: 1
24+
content: |
25+
[!include[](includes/5-summary.md)]
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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

Comments
 (0)