Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Enlist the advantages of sql.

937


Why should I use postgresql?

967


how to create a new view in mysql? : Sql dba

890


What are variables in pl sql?

1090


Can we create foreign key without primary key?

930


What do we need to check in database testing?

963


What are the basic techniques of indexing?

1012


What is the difference between microsoft access and sql?

958


How do you update sql?

912


what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba

985


Write a query to find the names of users that begin with "um" in sql?

923


What are the sql commands?

1094


Can we debug stored procedure?

955


What is the example of procedure?

873


how many triggers are allowed in mysql table? : Sql dba

994