I have a table with a date field. By default, select max(date) from table; returns the date in \'dd-mmm-yy\' format. How do I select the date in \'MM/DD/YYYY\'
select max(date) from table;
Try the following:
select to_char(sysdate,'mm/dd/yyyy') as maxdate from dual;
Some information on the oracle-specific function to_char():