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 attribute indicator in pl sql?
What is Histogram?
Where not exists in sql?
what is single byte over head in oracle..?
Explain the difference in execution of triggers and stored procedures?
how many columns can be used for creating index? : Sql dba
How can use stored procedures in sql?
What sql database should I use?
Is progress software supports to ( pl/sql )?
What schema means?
What are all the ddl commands?
what is the difference between $message and $$message? : Sql dba
Why truncate is used in sql?
What found sql?
What is linq to sql?