• It's actually cool. Thanks a lot. Have you test it for large tables, with joins?

    I have recently checked it uses to be faster sometimes to create the temporal table (t) instead of using that feature you have used, specially when further joins are going to be declared linking the "temporal" table created on the fly in this case inside parenthesis ()t.

    Have a good day!