Top "Crosstab" questions

A cross tab, also known as a "pivot table", is a method of summarizing data in tabular form.

Is it possible to use Crosstab/Pivot Query in MySQL?

I'm using MySQL. This is table i have supplier_ID Item_ID Date Price QTY 1 1 2012-01-01 00:00:00 500.00 2 1 1 2012-01-03 00:00:00 450.00 10 2 1 2012-01…

mysql select pivot crosstab
PostgreSQL says "return and sql tuple descriptions are incompatible"

I have the following data: ID CLASS VALUE 1 NHB 700905.7243 1 HBW 164216.1311 1 HBO 700905.7243 2 NHB 146023.3792 2 HBW 89543.2972 2 HBO 82152.072 3 NHB 1409818.328 3 HBW 220430.7922 3 HBO 323512.9391 4 NHB 48711.3814 4 HBW 163385.1575 4 HBO 363352.3441 …

sql postgresql pivot crosstab
Unable to use crosstab in Postgres

Postgres 9.2.1 on OSX 10.9.2. If I run the following crosstab example query: CREATE EXTENSION tablefunc; CREATE TABLE ct(id SERIAL, rowid …

postgresql crosstab search-path
Jasper Reports crosstab sorting with comparatorExpression

I'm trying to sort my dynamic columns in a cross tab according to some custom scheme. In the docs I …

sorting jasper-reports comparator crosstab
visualizing crosstab tables with a plot in R

I saw a plot generated in excel and I was wondering if R could also do it. This picture is …

r crosstab bubble-chart
PostgreSQL cross tab with three columns with values summed from one column

I am new to SQL and was trying to do a crosstab in Postgres. I would have done it in …

sql postgresql crosstab
Sql Server 2008 Cross Tab Query

I usually can figure out any sql queries I need for my applications, but I have recently been stumped by …

sql sql-server-2008 crosstab
Dynamically generate columns in PostgreSQL

I have seen that there are quit a few similar questions like this one, but I havent understood how to …

postgresql plpgsql dynamic-sql postgresql-9.3 crosstab
Use row values as columns in PostgreSQL

I have the following brands table with total sales per month as a result of a previous query: id | date | …

sql postgresql pivot crosstab
postgresql crosstab simple example

I got a key-value based table where each key-value pair is assigned to an entity which is identified by an …

postgresql crosstab