SQL

SQL

Made by DeepSource

Inconsistent capitalisation of keywords SQL-L010

Style
Major

All keywords should be of same case to maintain consistency.

The defaults can be configured per your needs with the following parameters.

Parameter Type Default value
capitalisation_policy String "consistent"

Other vaules are: "upper", "lower", "capitalise".

Bad practice

In this example, ‘select ‘is in lower-case whereas ‘FROM’ is in upper-case.

select
    a
FROM foo

Recommended

Make all keywords either in upper-case or in lower-case

SELECT
    a
FROM foo

-- Also good

select
    a
from foo