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
Define implicit and explicit cursors.
Is progress software supports to ( pl/sql )?
How can we store rows in PL/SQL using array?
what is the bond code in materialized view?
What are the different ddl commands in sql?
List the ways to get the count of records in a table?
Is sql a backend language?
how many groups of data types? : Sql dba
Mention what is the function that is used to transfer a pl/sql table log to a database table?
What is pessimistic concurrency control? : Transact sql
Is it possible to sort a column using a column alias?
How do I partition in sql?
Differentiate pl/sql and sql?
What is mutating trigger?
How many sql databases can you have on one server?