1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-30 12:40:03 +02:00

fix: table alignment (#5151)

Small Alignment correction
This commit is contained in:
Dharun
2024-02-07 21:17:21 +05:30
committed by GitHub
parent e2f7abe69a
commit 63c3850f0e

View File

@@ -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.
Notably, in all databases, including MySQL, PostgreSQL, and SQLite, the `SUM()` function operates the same way.