What about {{select b as c from A as b, B as c} } ? I.e. should from and select be considered as two separate "phases" which can re-define aliases independently?
I believe for the reader of a query it's easier to understand it if aliases are unambigious across the complete query, not only specific clauses; Also if the latter may be technically resolvable by examining the aliases in each clause independently.
|