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
What is the purpose of using pl/sql?
How do you get column names only for a table (sql server)?
What is the difference between sql and t sql?
Which sql most popular?
Why query optimization is needed?
What are the different types of triggers?
what are the advantages a stored procedure? : Sql dba
Can you select everything, but 1 or 2 fields, without writer's cramp?
What is synchronized subquery?
what is denormalization. : Sql dba
What is difference between table and view?
What is range partitioning?
How do I view an execution plan in sql?
What are inbuilt functions in sql?
How do I run a sql script?