SQL

SQL

Made by DeepSource

Unused table alias SQL-L025

Anti-pattern
Major

Tables should not be aliased if that alias is not used. An usused alias makes code harder to read without changing any functionality.

Bad practice

SELECT
    a
FROM foo AS zoo

Recommended

Use the alias or remove it.

SELECT
    zoo.a
FROM foo AS zoo

-- Alternatively...

SELECT
    a
FROM foo