Unpivot Columns to Rows in SQL Server (SQL Detailed Walkthrough)

  Рет қаралды 555

Anthony Smoak

Anthony Smoak

Күн бұрын

In this video you will learn how to unpivot data using SQL Server via a highly detailed example. We will use Tableau Superstore data to build an aggregation table using a CTE (Common Table Expression).
Aggregation tables are useful to data visualization developers as table information is stored with pre-summarized totals at a higher level of aggregation than the most granular fact table. They allow reports to be generated from small, rather than large, tables. The UNPIVOT relational operator enables this benefit!
★☆★ FOLLOW ME BELOW: ★☆★
bit.ly/m/antho...
Instagram / anthonysmoakdata
LinkedIN / anthonysmoak
Facebook / anthonybsmoak
☕☕ If my channel has helped you, consider buying me a coffee! Thanks & Cheers! ☕☕
www.buymeacoff...
★☆★ Support this Channel: ★☆★
Merch ► shop.spreadshirt.com/AnthonySmoak
00 Intro
0:30 Wide Data vs Tall Data
1:45 Explore Dataset (Superstore)
2:20 Build Aggregation Table
3:22 Leave a Comment for More Explanation
5:03 Learn to Comment Multiple Lines w/ a Shortcut
6:12 Build a CTE
7:27 UNPIVOT (finally)
9:41 Column Consistency
9:48 I'm Real
10:39 Resolve Column Type Conflicts
#sqlserver #analytics #data #dataanalyst #education #onlinelearning

Пікірлер: 1
@florincopaci6821
@florincopaci6821 5 ай бұрын
Hello can you please explain what s the trick here? In the datediff substracting 0 from orderdate? thank you
Build Dynamic SQL in SQL Server
11:56
Anthony Smoak
Рет қаралды 7 М.
Learn WHERE vs HAVING in SQL | SQL Interview Question
9:49
Anthony Smoak
Рет қаралды 613
GTA 5 vs GTA San Andreas Doctors🥼🚑
00:57
Xzit Thamer
Рет қаралды 26 МЛН
escape in roblox in real life
00:13
Kan Andrey
Рет қаралды 14 МЛН
АЗАРТНИК 4 |СЕЗОН 2 Серия
31:45
Inter Production
Рет қаралды 838 М.
SQL Unpivot and more
14:45
James Oliver
Рет қаралды 12 М.
SQL - Multiple rows into comma separated values
7:14
dhandrohit
Рет қаралды 13 М.
Create a Stunning Advanced Dashboard in Tableau
1:12:10
Anthony Smoak
Рет қаралды 3 М.
Supercharge Your SQL Skills with Lead & Lag Functions
16:37
Anthony Smoak
Рет қаралды 1,1 М.
Parse and Query JSON Data with SQL
8:24
Anthony Smoak
Рет қаралды 3,8 М.
SQL Temp Tables
10:21
Pragmatic Works
Рет қаралды 5 М.
SQL Unpivot Simplified (Turn Columns into Rows)
8:24
Ryan & Matt Data Science
Рет қаралды 468
Easy Excel Sentiment Analysis
7:22
Anthony Smoak
Рет қаралды 1,1 М.
GTA 5 vs GTA San Andreas Doctors🥼🚑
00:57
Xzit Thamer
Рет қаралды 26 МЛН