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...

How do you display "13th of November, 17 days left for
month end" without hardcoding the date.

Answer Posted / prativa mishra

select hire_date,
to_char(hire_date,'ddth')||' '||'of'||'
'||to_char(hire_date,'month')||','||(last_day(hire_date)-
hire_date)||'days left for month end' aa
from
employees
where TO_DATE(HIRE_DATE,'DD-MON-RRRR')=&HIRE_DATE

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is trigger in flip flop?

1060


what is the functionality of the function htmlentities? : Sql dba

1005


What is sql*loader and what is it used for? : aql loader

1246


Why use stored procedures?

1140


What is the difference between inner join and left join?

1036


How do you determine the current isolation level? : Transact sql

1201


What is audit logout in sql profiler?

1073


What is rollback?

1184


Is inner join faster than left join?

1249


How do you optimize a stored procedure query?

1040


What is primary key secondary key alternate key candidate key?

1085


what is 'mysqldump'? : Sql dba

1165


What are stuff and replace function?

1141


What sql database should I use?

1192


What is sql profiler in oracle?

1157