Is there a shortcut to auto rename columns (like with a prefix or suffix) when self joining? I am comparing a lot of columns and it is a hassle to list them out and alias them.
A simplified example is:
WITH C as
(
SELECT * FROM A INNER JOIN B ON A.KEY=B.KEY WHERE ....
)
SELECT * from C
It balks obviously because every column has a dupe.