SQL

SQL

Made by DeepSource

Implicit aliasing of column detected SQL-L012

Style
Major

Implicit aliasing of column not allowed. Use explicit AS clause.

Example

You can set column aliases in SQL typing the identifier right after the column name.

SELECT column_one c1
FROM table;

(or) you can use the keyword AS to indicate the alias.

SELECT column_one AS c1
FROM table;

AS is a more explicit way of mentioning the alias.

Ref: https://stackoverflow.com/questions/4164653/whats-the-purpose-of-sql-keyword-as