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 does bitemporal mean?
What is a sql select statement?
what is 'mysqlimport'? : Sql dba
What are the different sql commands?
Can two tables have same primary key?
Does normalization improve performance?
How do you go back in sql?
How does sql profiler work?
Inline the values in PL/SQL, what does it mean.?
what is sql profiler? : Sql dba
How do you select unique values in sql?
Can unique keys be null?
Give the order of sql select?
How can we optimize a sql query?
How long will it take to learn pl sql?