write a query that displays every Friday in a year with date?
Answer Posted / sivareddy
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 <= to_date('31-dec-2016','dd-mon-yyyy') - TO_DATE('01-JAN-2016','DD-MON-YYYY')+1)
WHERE TO_CHAR(C_DATE,'DY') = 'FRI'
/
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to call a stored function in oracle?
What language does oracle use?
How to convert times to characters in oracle?
How to use an explicit cursor without open statements?
Explain do view contain data?
How to delete an existing row from a table in oracle?
Please explain joins in oracle?
What is a connect identifier?
How to load excel data sheet to oracle database
is there a tool to trace queries, like profiler for sql server?
Difference between hot backup vs. Cold backup?
What is the maximum limit on the number of columns in a table?
Design database draw er diagram for a certain scenario ?
How to write date and time interval literals in oracle?
How to define an anonymous block?