I am trying to compare 2 timestamp fields, which have different dates, ignoring the dates and using only the hour / minute simultaneously, to know, within one day which one is larger.
EX: '2000-10-10 10:00:22' > '2000-02-02 11:00:10'
In this case would be ignored the dates being compared only '10: 00 '> '11: 00 'returning FALSE.
I tried to use EXTRACT () but I did not find anything like "time"
SQL would be something like this If time existed ):
SELECT * FROM "Tabela" WHERE EXTRACT(TIME FROM "Coluna_1") > EXTRACT(TIME FROM "Coluna_2")