Welcome to

SqlServer-QA.net

Sign in | Join | Help

Should alias names be preceded by AS? - Part 2

In the Part 1, I expressed my opinion on having the alias names preceded by the keyword AS

Adding to the examples given at the link, consider this example too

SELECT
        10number
,
        10.number,
        10 number,
        10 [number],
        10[number],
        10 as number

It gives six columns with the result 10 and alias name number. Note that the first two expressions seem to be completely misleading

Am I right in insisting that SQL Server should force the usage of AS before the alias name?

Published Tuesday, September 09, 2008 12:10 PM by Madhivanan
Filed under: , ,

Comments

# Should alias names be preceded by AS? - Part 2

In the Part 1 , I expressed my opinion on having the alias names preceded by the keyword AS Adding to

Tuesday, September 09, 2008 7:47 AM by Other SQL Server Blogs around the Web

# SQL Server Transact-SQL (SSQA.net) : Should alias names be preceded by AS? - Part 2

# Log Buffer #114: A Carnival of the Vanities for DBAs

Friday, September 12, 2008 11:16 AM by Log Buffer #114: A Carnival of the Vanities for DBAs
Anonymous comments are disabled