Skip to content

Commit 02a1c57

Browse files
Update unpivot-multiple-columns in-snowflake.md
1 parent 48cc210 commit 02a1c57

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

unpivot-multiple-columns in-snowflake.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,11 @@ where split(skill, '_')[0] = split(skill_comments, '_')[0];
4949
```
5050

5151
## Example 2: Unpivot 2 Columns
52-
Suppose you have a Wide Table format Children Guardian contact information as following:
52+
Suppose you have a Wide Table format Children Guardian contact information that you want to convert to a Long Table format
5353

54-
| CHILD_NAME | GUARDIAN1_NAME | GUARDIAN2_NAME | GUARDIAN1_EMAIL | GUARDIAN2_EMAIL |
55-
|-----------------|------------------|-------------------|-----------------|-----------------|
56-
| Lynn Evans | Amrika Hernandez | Steve Evans | [email protected] | [email protected] |
57-
| Steph Andersson | Anders Bloom | Stephen McDonalds | [email protected] | [email protected] |
54+
|![Untitled drawing(23)](https://github.com/user-attachments/assets/632b638b-23f6-4a83-98c6-fce8c7b79967)|
55+
|:--:|
56+
|Transposing Guardian Contact Information to a Long table format which is easier to analyze.|
5857

5958
You can use the following SQL to transpose this into a long table format as following:
6059

0 commit comments

Comments
 (0)