I would like to compare two date fields in a database. Say the fields are deadline and completedOn date. I want to fetch the rows whose completedOn date is less than equal to the deadline date. I tried something like this,
But it didn't work.
Can someone help me with this?