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 function and procedure?
What is anonymous block in sql?
what is a database? : Sql dba
What are the two types of exceptions.
Write the alter statement to enable all the triggers on the t.students table.
Explain the the update statement in sql?
Which tcp/ip port does sql server run on? How can it be changed? : Sql dba
What is procedure function?
What is the maximum number of triggers, you can apply on a single table?
Does sql use python?
Does group by remove duplicates?
What is a data manipulation language?
explain what is mysql? : Sql dba
How many sql statements are used? Define them.
What is not in sql?