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
Explain polymorphism in pl/sql.
Why commit is not used in triggers?
How do I sort a table in sql?
What is the purpose of primary key?
What is procedure in pl sql?
What does where 1/2 mean in sql?
What is sql mysql pl sql oracle?
What is difference sql and mysql?
What is dynamic sql in pl sql?
What is insert command in sql?
Is id a reserved word in sql?
What is a sql statement?
How do I trace sql profiler?
What is a primary key called that is made up of more than one field?
What is benefit of creating memory optimized table?