Comments
3 comments
-
I can't get that to parse as valid sql (in ssms, not Prompt), so can't reproduce that example. That said, this looks like SP-7229 which has been closed as won't fix because the workaround is to alias both.
Ah it was you that reported this a while ago. I'll update that thread as well. -
I thought I'd logged it before but I couldn't find it. I still don't like the work around - I don't need an alias for the column list in the select, or the join conditions, or the group by, but I need to alias both for the order by.
-
Aye, I'm afraid we see this as a perfectly valid workaround though so won't be prioritising any fix.
Add comment
Please sign in to leave a comment.
A trivial example, say I type in the following query:
Additional note - if I put an alias on the first table (which is probably a good idea for readability), it works fine. It's only if I alias one table but not the other.