write a query that displays every Friday in a year with date?
Answer Posted / ranjan
SELECT C_DATE, TO_CHAR(C_DATE,'DY')
FROM
(
SELECT TO_DATE('01-JAN-2016','DD-MON-YYYY')+LEVEL-1 C_DATE
FROM DUAL
CONNECT BY LEVEL <= (SYSDATE - TO_DATE('01-JAN-2016','DD-MON-YYYY')+1)
)
WHERE TO_CHAR(C_DATE,'DY') = 'FRI'
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
How do I use os authentication with weblogic jdriver for oracle and connection pools?
Can we connect to ORACLE db using Windows Authentication?
Explain the importance of .pll extension in oracle?
How to do clean up if create database failed?
How to start a specific oracle instance?
How to get execution path reports on query statements?
How to empty your oracle recycle bin?
How to delete a column in an existing table?
What do you know about normalization? Explain in detail?
What is the difference between Delete, Truncate and Drop in Oracle?
What are joins, explain all types of joins?
Please explain oracle data types with examples?
Is postgres faster than oracle?
What is where clause in oracle?
is there a tool to trace queries, like profiler for sql server?