Skip to main content

Duplicated value in an IN condition

ZPA rule for PL/SQL and Oracle SQL · DuplicatedValueInIn

Duplicated values in an IN condition can be either a copy/paste error and therefore a bug, or it is simply wasted code, and should be simplified.

Examples​

Noncompliant Code Example
if value in (a, a, b) then ...
Compliant Solution
if value in (a, b) then ...