write a query that displays every Friday in a year with date?
Answer Posted / basanti meher
SELECT A_DATE, TO_CHAR(A_DATE,'DY')
FROM
(
SELECT TO_DATE('01-JAN-2016','DD-MON-YYYY')+LEVEL-1 A_DATE
FROM DUAL
CONNECT BY LEVEL <= (366)
)
WHERE TO_CHAR(A_DATE,'DY') = 'FRI'
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How do I limit the number of rows returned by an oracle query after ordering?
What is raw datatype?
What is bulk collect in oracle?
What is logical backup in oracle?
Which is faster join or subquery in oracle?
What is index in Oracle?
In Oracle Clinical 4.5.0, can the VIEW_TEMPLATE_ID column in DATA_EXTRACT_VIEWS table contain NULL value?
How to pass a parameter to a cursor in oracle?
How to use "in out" parameter properly?
How to empty your oracle recycle bin?
How to store pictures on to the database?
What is connection pooling in oracle?
How to call a sub procedure?
What is connection pool in oracle?
How to view the data files in the current database?