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 union and union all keyword in sql?
What is a record in a database?
Why function is used in sql?
What is basic structure of pl sql?
what are the nonstandard string types? : Sql dba
When is a declare statement required?
How are sql commands classified?
Can we call a function containing dml statements in a select query?
Is left join same as join?
What is difference between joins and union?
What does where 1 1 mean in sql?
What is secondary key?
what are the different tables present in mysql? : Sql dba
What is sql table?
What is an exception in pl/sql?