I am using QGIS Essen version 2.14.1, and I am trying to select specific data according to dates in the field calculator:
I am using the following formula but the system is telling me: syntax error, unexpected LE
Here is my formula:
case when
( "Copy of _4" > 01/09/2016 and "Copy of _5" < 18/09/2016)
then 'Y' else 'N' end
Anyone know where I am going wrong?
text
, then your error comes from the fact that you are trying to compare a text and a date, which is impossible. You'll have to use theto_date
function to convert "Copy of _4" to date type.