Re: TSQL To Postgres - Unpivot/Union All

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Anthony Apollis <anthony(dot)apollis(at)gmail(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: TSQL To Postgres - Unpivot/Union All
Date: 2023-07-20 12:48:22
Message-ID: CAKFQuwZi0MzMxNghVk8DBiqACbjp8YNFKF9g44_hK1dBX8BzhA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

On Thursday, July 20, 2023, Anthony Apollis <anthony(dot)apollis(at)gmail(dot)com>
wrote:
>
>
> I am trying to convert this TSQL:
>

This doesn’t really seem relevant all that relevant at this point. Given
some input data either the query produces the expected result or it doesn’t.

>
> What am i doing wrong? Please assist?
>

You need to provide more info - specifically the input data mentioned
above. Try making a reproducer on this fiddle site.

https://dbfiddle.uk/btGcOH30

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Geoff Winkless 2023-07-20 13:58:06 Re: TSQL To Postgres - Unpivot/Union All
Previous Message Anthony Apollis 2023-07-20 12:17:42 Fwd: TSQL To Postgres - Unpivot/Union All

Browse pgsql-sql by date

  From Date Subject
Next Message Geoff Winkless 2023-07-20 13:58:06 Re: TSQL To Postgres - Unpivot/Union All
Previous Message Anthony Apollis 2023-07-20 12:17:42 Fwd: TSQL To Postgres - Unpivot/Union All