Zitat von Paul Jungwirth <p...@illuminatedcomputing.com>:
I think you are looking for `WITH ORDINALITY` (in pg 9.4+). For instance you could rewrite your first CTE like so:
Thanks for the hint. Kind regards --Öffentlicher PGP-Schlüssel: http://pgp.mit.edu/pks/lookup?op=get&search=0x8F70EFD2D972CBEF
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.