I have a query that counts records between 2 dates.
When I use
to_char(LAST_CN T_DATE_TIME,'YY YY/MM/DD') between
'2015/09/01' and
'2015/09/23'
result is 11405
When I use
LAST_CNT_DATE_T IME between
to_date('2015/09/01','YYYY/MM/DD') and
to_date('2015/09/23','YYYY/MM/DD')
result is 9389
I am more apt to use the first
sometimes the results are the same
Thanks
When I use
to_char(LAST_CN T_DATE_TIME,'YY YY/MM/DD') between
'2015/09/01' and
'2015/09/23'
result is 11405
When I use
LAST_CNT_DATE_T IME between
to_date('2015/09/01','YYYY/MM/DD') and
to_date('2015/09/23','YYYY/MM/DD')
result is 9389
I am more apt to use the first
sometimes the results are the same
Thanks
Comment