SELECT
[Name] AS Blop,
Id AS [Name]
FROM
SYSOBJECTS
ORDER BY
SYSOBJECTS.[Name]
results in a set of records ordered by the Id column (aliased as Name),
surely it should order them by SYSOBJECTS.[Name] as I tell it to?
Is there any good reason why it would ignore the table name?
Cheers,
Rsa
The exception is where the specified column name is ambiguous (the same name
from more than one base table). Then the correct alias must be used.
--
David Portas
SQL Server MVP
--