How can I compare a date in SQL?

Original text of this message