Running the following query (on SQL Server 2000 SP3a)
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
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
Comment