Hi Everyone,
Please see the below queries. According to me both are resulting same. Then why do we use Trim over here. I found this in an existing code. The functionlity is "we have to check that particular day whether it's weekdays or weekend". This is an existing functionlity, I'm little confused here. Please help me out.
SELECT trim(to_char(to_date('15042012', 'DDMMYYYY'), 'DAY')) from dual;
SELECT to_char(to_date('15042012', 'DDMMYYYY'), 'DAY') from dual;
Regards,
BS2012.
Edited by: BS2012 on May 7, 2013 6:34 PM
Edited by: BS2012 on May 7, 2013 6:34 PM