Re: Crosstab function - Mailing list pgsql-sql

From Gowtham Vel
Subject Re: Crosstab function
Date
Msg-id CAH-J9gYKOH+WFHYYVw7YsrkU3YZ8GMFYaUnjEe-FwXxvkFFEDg@mail.gmail.com
Whole thread Raw
In response to Re: Crosstab function  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: Crosstab function  (Gowtham Vel <c8gowthamvel@gmail.com>)
List pgsql-sql
Hi Adrian,

I have attached the input table and output table in below .xlsx sheet

1) I have removed the duplicate rows and sort the INPUT_TABLE  i.e.,
SELECT * FROM "public".INPUT_TABLE ORDER by 2,3
2) Input_table column name should be the column heading for Output_table.
3) Input_table column value should be the rows for Output_table.
4) some values i have mention in null , because its for future
record(its might come)
5) please refer the below attached sheet and provide your assistance,

Regards,
Gowtham K

Attachment

pgsql-sql by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Crosstab function
Next
From: Gowtham Vel
Date:
Subject: Re: Crosstab function