From 63c3850f0ed0f5b7c1f30b495f0f31cb0d3a6c8e Mon Sep 17 00:00:00 2001 From: Dharun <128183317+Dharun-maxie@users.noreply.github.com> Date: Wed, 7 Feb 2024 21:17:21 +0530 Subject: [PATCH] fix: table alignment (#5151) Small Alignment correction --- .../sql/content/104-aggregate-queries/101-sum.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/data/roadmaps/sql/content/104-aggregate-queries/101-sum.md b/src/data/roadmaps/sql/content/104-aggregate-queries/101-sum.md index cc6983bd8..b3a05d569 100644 --- a/src/data/roadmaps/sql/content/104-aggregate-queries/101-sum.md +++ b/src/data/roadmaps/sql/content/104-aggregate-queries/101-sum.md @@ -14,10 +14,10 @@ For example, consider the following `ORDER` table: ``` | OrderID | Company | Quantity | -|-------------|-----------|----------| -| 1 | A | 30 | -| 2 | B | 15 | -| 3 | A | 20 | +|------------|---------|----------| +| 1 | A | 30 | +| 2 | B | 15 | +| 3 | A | 20 | ``` If you want to find the total quantity, you can use `SUM()`: @@ -30,8 +30,8 @@ Output will be: ``` | TotalQuantity | -|----------------| -| 65 | +|---------------| +| 65 | ``` **Note:** The `SUM()` function skips NULL values. @@ -55,4 +55,4 @@ This will give us the sum of `Quantity` for each `Company` in the `Order` table. | B | 15 | ``` -Notably, in all databases, including MySQL, PostgreSQL, and SQLite, the `SUM()` function operates the same way. \ No newline at end of file +Notably, in all databases, including MySQL, PostgreSQL, and SQLite, the `SUM()` function operates the same way.