ppl,
I need some help regarding a DB2 select statement - I have three fields in a table like this
YEAR CHAR(4) N 2011
MONTH CHAR(2) N 01
DAY CHAR(2) N 01
I need to select data between 2 dates. I tried giving this but it said no rows found . How should i do this
WHERE ("YEAR" > '2011'
AND "MONTH" > '01'
AND "DAY" > '01' )
AND ("YEAR" < '2011'
AND "MONTH" < '03'
AND "DAY" < '01' )
FOR FETCH ONLY WITH UR