Turn rows to columns Postgres?
IT
it at plastipol.com
Tue Jun 21 17:47:04 UTC 2022
Hi,
Time ago I asked for this too and Doug pointed me to postgresql crosstab function.
And Dougt is right, crosstab is very useful for this. I’m using since then, for converting a table of products properties into an excel style with only one query.
Very, very powerful but some times can be brain storming.
There is a lot information in google about postgresql crosstab function.
regards
xavier
> El 17 jun 2022, a las 23:12, Doug Easterbrook via omnisdev-en <omnisdev-en at lists.omnis-dev.com> escribió:
>
> the ‘crosstab’ funtcion might help.
>
> https://ubiq.co/database-blog/create-pivot-table-postgresql/
>
> I searched google for ‘convert rows to columns in postgres'
>
> Doug Easterbrook
> Arts Management Systems Ltd.
> mailto:doug at artsman.com
> http://www.artsman.com
> Phone (403) 650-1978
>
>> On Jun 17, 2022, at 10:51 AM, Das Goravani <goravanis at gmail.com> wrote:
>>
>>
>> I notice that there are web tutorials for SQL turning rows to columns for SQL Server (only)
>>
>> Is there a function or keyword that does that in Postgres?
>> _____________________________________________________________
>> Manage your list subscriptions at https://lists.omnis-dev.com
>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
>
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list