DataGrip
 
Get DataGrip
You are viewing the documentation for an earlier version of DataGrip.

Code Inspection: Unused subquery item

Last modified: 13 May 2022

Reports columns, aliases, and other subquery items that are not referenced in the outer query expression.

Example (PostgreSQL):

We reference a and q aliases from a subquery. But the b alias and the id column are not referenced in the outer SELECT statement. Therefore, b and id are grayed out.