4 ms·
Great article, always learn a lot from this author. Here is another way I have used to do pivot tables / crosstab in postgres where you have a variable number
by netcraft 5y ago
Great article, always learn a lot from this author.
Here is another way I have used to do pivot tables / crosstab in postgres where you have a variable number of columns in the output:
https://gist.github.com/ryanguill/101a19fb6ae6dfb26a01396c53fd3c66 https://gist.github.com/ryanguill/101a19fb6ae6dfb26a01396c53...
You can try it out here: https://dbfiddle.uk/?rdbms=postgres_9.6&fiddle=5dbbf7eadf0ed92f8d6a49fc5be8f3f2 https://dbfiddle.uk/?rdbms=postgres_9.6&fiddle=5dbbf7eadf0ed...
- leephillips 5y agoYes, just the per-DB history was worth the price of admission. Too bad there is no RSS feed.
- gobblegobble2 5y agoThe feed is here: https://hakibenita.com/feeds/all.atom.xml https://hakibenita.com/feeds/all.atom.xml.
- leephillips 5y agoThanks!