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
define data blocks ? : Sql dba
How to fetch values from testtable1 that are not in testtable2 without using not keyword?
What is difference between procedure and trigger?
how to convert character strings to numeric values? : Sql dba
How to run sql functions in pl/sql?
Is sql low level language?
How do you optimize a stored procedure query?
What is int identity in sql?
What are different types of statements supported by sql?
How do you delete a table?
Do ddl statements need commit?
What are sql objects?
What do you know by pl/sql cursors?
What is a Mapplet?
What has stored procedures in sql?