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
Explain the select statement in sql?
What are predefined functions in sql?
What are the two parts of design view?
what is transaction? : Sql dba
What do you understand by case manipulation functions?
What is sql and db2?
Explain the insert into statements in sql?
Why function is used in sql?
What is the command used to fetch first 5 characters of the string?
how does a local variable is defined using t-sql? : Transact sql
What are all the different types of indexes?
What are different types of tables in sql?
Is join same as left join?
what are the features and advantages of object-oriented programming? : Sql dba
What is procedure explain with example?