Trivadis / plsql-and-sql-coding-guidelines

Trivadis PL/SQL & SQL Coding Guidelines

Home Page:https://trivadis.github.io/plsql-and-sql-coding-guidelines/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New rule: Always specify column aliases instead of positional references in GROUP BY clauses.

PhilippSalvisberg opened this issue · comments

Starting with 23c it is possible to group by column alias or position.

IMO grouping by an alias is the way to go. No need to repeat a lengthy expression. It makes the code more compact and readable. Using a positional reference is bad for the same reason as stated in G-3180.