Top "Dynamic-pivot" questions

The PIVOT syntax converts row data into columnar data.

Dynamic pivot in oracle sql

... pivot (sum(A) for B in (X)) Now B is of datatype varchar2 and X is a string of varchar2 …

sql oracle pivot dynamic-pivot
Dynamically create columns sql

I have a table of Customers Customer ID Name 1 John 2 Lewis 3 Mary I have another table CustomerRewards TypeID Description 1 Bronze 2 …

sql sql-server tsql pivot dynamic-pivot
How to pivot dynamically with date as column

I have a table with product id's and names, and another table with the stock of these products on certain …

sql sql-server pivot dynamic-pivot
SQL Server - Dynamic PIVOT Table - SQL Injection

Sorry for the long question but this contains all the SQL I've used to test the scenario to hopefully make …

sql-server sql-server-2005 sql-injection pivot dynamic-pivot
Row and column total in dynamic pivot

In SQL Server 2008, I have a table (tblStock) with 3 columns: PartCode (NVARCHAR (50)) StockQty (INT) Location (NVARCHAR(50)) some example data below: …

sql-server-2008 pivot cube dynamic-pivot
Dynamically "pivot" rows into columns - SQL Server

I have a table that looks like this: DtCreated | UserName | Question | Answer 2016-09-24 14:30:11.927 | mauricio | Senha | 99658202 2016-09-24 14:30:11.927 | mauricio | Inteiro | 10 2016…

sql sql-server pivot pivot-table dynamic-pivot