Relative Content

Tag Archive for postgresqlwhere-clausecommon-table-expressionin-operator

Usage of ‘in’ operator in Postgres sql

I have created a CTE using ‘with’ clause and I am using case when expression to populate a column in CTE and I wanted to use the result of case when expression in where condition as a criteria value to fetch the results using ‘in’ operator.