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 the current version of sql?
How to combine two stored procedures in sql?
How many types of privileges are available in sql?
what is a constraint? : Sql dba
What is meant by temporal data?
how to dump a table to a file with 'mysqldump'? : Sql dba
how tsql statements can be written and submitted to the database engine? : Transact sql
Is join an inner join?
How do temporal tables work?
how to install mysql? : Sql dba
What is the most restrictive isolation level? : Transact sql
What is pragma in pl sql?
What does fetching a cursor do?
What is partition by in sql?
How do you modify a column in sql?