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
Enlist the advantages of sql.
Why should I use postgresql?
how to create a new view in mysql? : Sql dba
What are variables in pl sql?
Can we create foreign key without primary key?
What do we need to check in database testing?
What are the basic techniques of indexing?
What is the difference between microsoft access and sql?
How do you update sql?
what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba
Write a query to find the names of users that begin with "um" in sql?
What are the sql commands?
Can we debug stored procedure?
What is the example of procedure?
how many triggers are allowed in mysql table? : Sql dba