Top "Pivot" questions

The PIVOT syntax converts row data into columnar data, and vice versa for the UNPIVOT syntax.

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
Pivots with dynamic columns in SQL Server

I am working on an SQL Query using pvots with dynamic columns in SQL Server (T-sql). Rather than submitting my …

sql-server-2005 tsql sql-server-2008 pivot dynamic-data
Pivot on Multiple Columns using Tablefunc

Has anyone used tablefunc to pivot on multiple variables as opposed to only using row name? The documentation notes: The "…

sql postgresql pivot crosstab
Oracle SQL pivot query

I have data in a table as seen below: MONTH VALUE 1 100 2 200 3 300 4 400 5 500 6 600 I want to write a SQL query so that …

sql oracle pivot
Android setting pivot point for scale animation

I am trying to scale views to a certain size but can't quite understand how pivoting works. Say I want …

android animation pivot
How to pivot a dataframe?

What is pivot? How do I pivot? Is this a pivot? Long format to wide format? I've seen a lot …

python pandas group-by pivot pandas-groupby
SQL PIVOT SELECT FROM LIST (IN SELECT)

Is it possible to do a PIVOT and select list from a table, instead of using single values? Like this (…

sql sql-server tsql pivot
SQL Server Pivot Table with Counts and Sums

I am trying to get an SQL Server Pivot table to work that allows me to count and then sum …

sql-server tsql pivot unpivot
How to pivot a MySQL entity-attribute-value schema

I need to design tables which stores all the metadata of files (i.e., file name, author, title, date created), …

mysql database-design pivot entity-attribute-value
Pivoting data in MS Access

I have a query that I've created to pull student IDs and meal items they have taken over a month …

sql ms-access pivot