SQL

SQL

Made by DeepSource

Multiple SELECT targets on same line SQL-L036

Style
Minor

SELECT targets should be on a new line unless there is only one SELECT target.

Note, a wildcard (e.g. SELECT *) is considered a single select target.

Bad practice

SELECT
    a, b
FROM foo;

-- for single target don't use a new line
SELECT
    a
FROM foo

Recommended

SELECT
    a,
    b
FROM foo

-- for single target no newline is required
SELECT a
FROM foo