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
Why coalesce is used in sql?
How do I run a program in pl sql?
How do I debug a stored procedure?
Why do we use procedures in pl sql?
What do you mean by field in sql?
How many types of indexes are there in sql?
Is sql a microsoft product?
Is record in oracle pl sql?
Can we use commit inside a trigger?
Are dml statements autocommit?
Is primary key a clustered index?
What is the use of triggers?
what are the different functions in sorting an array? : Sql dba
What are the different types of dbms?
Does access use sql?