i want to do search depend on date , when i use this statement it gives me empty result
Select * from apps.xx_fa_track where TO_CHAR(trx_date, 'mm/dd/yyyy') = '5/25/2014'
Select to_char(sysdate, 'MM/DD/YYYY') FROM apps.xx_fa_track
Can someone please help?
mmgives you two digits of month (e.g.05), and you compare to one-digit month (5). When in doubt,select ... from dualis your friend, it allows you to evaluate arbitrary expressions and see if they make sense.