filmov
tv
SQL Convert Rows to Columns and Columns to Rows without using Pivot Functions

Показать описание
In this video we will discuss how to convert rows to columns and vice versa without using pivot functions. Below is the script to create table and data:
create table emp_compensation (
emp_id int,
salary_component_type varchar(20),
val int
);
insert into emp_compensation
values (1,'salary',10000),(1,'bonus',5000),(1,'hike_percent',10)
, (2,'salary',15000),(2,'bonus',7000),(2,'hike_percent',8)
, (3,'salary',12000),(3,'bonus',6000),(3,'hike_percent',7);
select * from emp_compensation;
create table emp_compensation (
emp_id int,
salary_component_type varchar(20),
val int
);
insert into emp_compensation
values (1,'salary',10000),(1,'bonus',5000),(1,'hike_percent',10)
, (2,'salary',15000),(2,'bonus',7000),(2,'hike_percent',8)
, (3,'salary',12000),(3,'bonus',6000),(3,'hike_percent',7);
select * from emp_compensation;
SQL Query - Convert data from Rows to Columns | Pivot
SQL Convert Rows to Columns and Columns to Rows without using Pivot Functions
How to convert ROWS into COLUMNS in SQL without using Pivot table #sqlinterviewquestionsandanswers
Part 6 Transform rows into columns in sql server
Solving SQL Query | Rows to Column in SQL
How to convert COLUMNS TO ROWS in SQL without using Pivot table - #sqlinterviewquestionsandanswers
SQL Query | How to dynamically convert rows into columns | Dynamic Pivot
How to pivot rows to columns (and back) in SQL: Databases for Developers #14
How to build Secure Conversational Analytics / Text to SQL.
SQL Query | Convert data from columns into Rows | Unpivot
Converting columns into rows in SQL Server
SQL Query | How to convert data from rows into comma separated single column | FOR XML PATH | STUFF
How to Transpose Rows Into Columns in Sql Server
SQL Query - Convert data from Rows to Columns |Case | Pivot data
SQL | PIVOT data | Convert data from ROW level to COLUMN level | Using CASE
Master SQL Pivot: Transform Rows to Columns
SQL Unpivot Simplified (Turn Columns into Rows)
SQL Tutorial - PIVOT
SQL | Pivot Multiple Columns | Rows to Columns | Transpose
Dynamically Pivot Data in SQL Server
SQL Tutorial - How to Transform Column into Row
Rolling up multiple rows into a single row and column for SQL Server data
Airbnb SQL Interview Question | Convert Comma Separated Values into Rows | Data Analytics
XMLTABLE : Convert XML into Rows and Columns using SQL
Комментарии