I need to select all columns from two tables, but need to be able to differentiate between them in the result.
Is there a shorthand method of giving each column in t
No, ALIAS is only for single columns. The only shorthand is to remove the AS:
ALIAS
AS
SELECT column_123 col FROM x
Returns col as the alias.
col
No, you'll need to name them explicitly.