What will be the output of this Query?
select to_char(trunc(add_months(sysdate-3),mm),mm/dd/yyyy) from dual
Answer Posted / rajeev
select to_char(trunc(add_months(sysdate-3),mm),mm/dd/yyyy) from dual--This query will return error...
we can use below query..
select to_char(trunc(add_months(sysdate-1,3),'mm'),'mm/dd/yyyy') from dual;
output:05/01/2018
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why join is faster than subquery?
What is trigger and stored procedure in sql?
What is a sql statement?
What is hibernate and its relation to sql?
what is top in tsql? : Transact sql
How do I run a query in pl sql developer?
how to convert character strings to numeric values? : Sql dba
Can you do multiple joins in sql?
what is csv? : Sql dba
What is full join in sql?
What is sql exception?
What are the different datatypes available in PL/SQL?
How do you declare a constant?
How to avoid using cursors?
Which command is used to call a stored procedure?