The first_advisory column is of type DATE, I put an image of the records entered so far:
Making this query:
SELECT primer_aviso FROM tabla_principal WHERE 'primer_aviso' < '2017-12-01'
Is not it supposed that only records that are dated before December 1, 2017 should appear? Because it throws me 0 records. And the following query:
SELECT primer_aviso FROM tabla_principal WHERE 'primer_aviso' >= '2017-12-01'
Should not you show the records from December 1, 2017 onwards? Because I see all the records in the table. These are the results:
I do not understand why.