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
Name three sql operations that perform a sort.
Which nosql database is best?
what are the advantages of using stored procedures? : Sql dba
GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?
Write the command to remove all players named sachin from the players table.
What is substitution variable?
Explain dml and ddl?
What is a unique key?
Is big data nosql?
table structure: ---------------- col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10 01-mar-2012 11:12:46 01-mar-2012 11:11:23 Write a query to display the result as shown below: col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10
How is indexing done in search engines?
How to raise user-defined exception with custom sqlerrm ?
What are different types of tables in sql?
Why use triggers in sql?
How do I run a sql script?