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

tell us something about heap tables. : Sql dba

699


What is restrict in sql?

638


What is delimiter in pl sql?

660


Is not null in sql?

646


What is a pl/sql block?

680






What is write ahead logging in sql server?

654


how to drop an existing index in mysql? : Sql dba

622


How many triggers can be applied on a table?

595


How is sql used in oracle?

668


What is dml and ddl?

609


What is pessimistic concurrency control? : Transact sql

674


Why sql query is slow?

662


Is left join faster than join?

643


Where the sql database files are stored?

591


What is the size of partition table?

636