Suppose I have this two queries:
SELECT * FROM payments WHERE created < DATE '1967-01-01'SELECT * FROM payments WHERE created < '1967-01-01'
And created field is a date field.
I would like to know if in query 2) is comparing two dates like in 1) and is not comparing two strings lexicographically.
Thanks!
CASTorCONVERTto make sure that the comparison is done in the way you want.