Postgresql – Hot to use SQL WITH VALUES clause to define constant value
In PostgreSQL I have: SELECT * FROM weather_data WHERE parameter_type = 'TEMPERATURE'; I want to write this as: WITH ParameterType AS (VALUES ('TEMPERATURE')) SELECT * FROM weather_data WHERE parameter_type = ParameterType; I get error: "column "parametertype" does not exist"