The topic describes the DF187 T-SQL code analysis rule.
BEST PRACTICE
Unqualified column name is used in the SELECT list.
It is recommended to fully specify column names with aliases to prevent ambiguity and improve readability.
SELECT NAME COLLATE Latin1_General_100_BIN
FROM sys.columns
GO
SELECT Salary*2
FROM dbo.PersonnelSalary
GO
SELECT NAME COLLATE Latin1_General_100_BIN AS Name
FROM sys.columns
GO
SELECT Salary*2 AS DoubledSalary
FROM dbo.PersonnelSalary
GO
SELECT FirstName /*result column name inherits source column name FirstName*/
FROM dbo.Personnel
GO