SQL

SQL

Made by DeepSource

Keyword used as an identifier SQL-L029

Bug risk
Major

Keywords should not be used as identifiers.

Bad practice

In this example, SUM function is used as an alias.

SELECT
    sum.a
FROM foo AS sum

Recommended

Avoid keywords as the name of an alias.

SELECT
    vee.a
FROM foo AS vee