Good afternoon,
I'm doing a simple query of a logical in db2 that is numeric but contains dates of the following format 20170831, but when doing the query with both 'between' with the operators '> = < =' brings all the existing dates.
The query is the following
SELECT NROP55, TIPL55, PBAE55, STAT1B, FIPL55 from
IVRDB2.S103V5HM.xxxx.xxxx
WHERE Fecha >= 20170801 AND Fecha <= 20170829
ORDER BY FIPL55 desc
The format is year, month, day and the result is always from 2014 or beyond.
Could you help me?
(I already use the quotes for the dates but it still yields the same result) Greetings