Search Postgresql Archives

Re: Return select statement with sql case statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday, July 4, 2018, Ron <ronljohnsonjr@xxxxxxxxx> wrote:
Ah, didn't notice that.  Then... dynamic sql constructed by the programming language executing the query?

That, the UNION idea, or pull the common stuff into the from clause and write two left joins then coalesce whichever one provided the row.  In short, the OP cannot do what they thought they needed to do but hasn't really provided any info for others to make alternative suggestions.

David J. 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux