Skip to content

Commit

Permalink
Hack to format the width of the pivot table columns
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Monahan committed Sep 17, 2024
1 parent a74a601 commit 059829e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _posts/2024-09-14-sql-only-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ FROM pivot_table(['business_metrics'], -- table_names
);
```

| product_line | product | value_names | 2022_Q1 | 2022_Q2 | 2022_Q3 | 2022_Q4 | 2023_Q1 | 2023_Q2 | 2023_Q3 | 2023_Q4 |
|----------------------|---------------|--------------|---------|---------|---------|---------|---------|---------|---------|---------|
| product_line                     | product                     | value_names | 2022_Q1 | 2022_Q2 | 2022_Q3 | 2022_Q4 | 2023_Q1 | 2023_Q2 | 2023_Q3 | 2023_Q4 |
|:---|:---|:---|:---|:---|:---|:---|:---|:---|:---|:---|
| Duck Duds | Duck neckties | sum(cost) | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
| Duck Duds | Duck neckties | sum(revenue) | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| Duck Duds | Duck suits | sum(cost) | 10 | 10 | 10 | 10 | 10 | 10 | 10 | 10 |
Expand Down

0 comments on commit 059829e

Please sign in to comment.