What will be the output of this Query?
select to_char(trunc(add_months(sysdate-3),mm),mm/dd/yyyy) from dual
Answer Posted / nitin
Let SYSDATE = '20-Sep-2012'
Use below query,
select to_char(trunc(add_months(sysdate,-
3),'mm'),'mm/dd/yyyy') from dual;
It will give you ...
o/p :
'06/01/2012'
| Is This Answer Correct ? | 15 Yes | 9 No |
Post New Answer View All Answers
What is an oracle stored procedure?
Can we insert data into view?
what is auto increment? : Sql dba
How do you delete a table?
Can we use threading in pl/sql?
Is sql low level language?
what is column? : Sql dba
Define the select into statement.
Which command is used to delete a package?
Why coalesce is used in sql?
What are different types of statements supported by sql?
what is 'mysqlimport'? : Sql dba
What does (*) mean in sql?
what are the properties and different types of sub-queries? : Sql dba
What is pl sql architecture?