sql-language-server icon indicating copy to clipboard operation
sql-language-server copied to clipboard

[SQLint] Be explicit when joining for `JOIN` keyword

Open joe-re opened this issue 5 years ago • 0 comments

refer: https://about.gitlab.com/handbook/business-ops/data-team/platform/sql-style-guide/#joins

JOIN will work for INNER JOIN as default.

   -- Good
   FROM source
   JOIN other_source 
     ON source.id = other_source.id
   WHERE ...
   -- Bad
   FROM source
   LEFT JOIN other_source 
     ON other_source.id = source.id
   WHERE ...

joe-re avatar Aug 03 '20 23:08 joe-re