I want to write a query which returns the month only in 3 characters but the first character should be Capital and the rest non-capital. For example DEC should be (Dec) or JAN (Jan).
select substr(sysdate,4,3) from dual;
SQL code above returns the month but in capital "DEC", so I want the output as "Dec".
Does anyone know how to achieve it?
Thanks
substron a DATE column. That relies on the evil implicit data type conversion. On my computer your query would return8-1