skip to Main Content

Subquery as string to new query in postgresql

I have this working static query: SELECT companyname, companyid, incorporationcountryid, periodEndDate, filingdate, AVG(dataitemvalue) FILTER (WHERE menmonic = 'AT') as "AT", AVG(dataitemvalue) FILTER (WHERE menmonic = 'COGS') as "COGS" FROM aaa3 GROUP BY companyname, companyid, incorporationcountryid, periodEndDate, filingdate ORDER BY companyname,…

VIEW QUESTION
Back To Top
Search