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
6. Display the client name and order date for all orders using the traditional method.
How do I know if oracle client is installed on windows?
Explain what are the uses of rollback segment?
IS it possible to built the oracle database without setting the kernal parameters?
How to empty your oracle recycle bin?
How to load excel data sheet to oracle database
What is a nvl function? How can it be used?
How do you tell what your machine name is and what is its IP address?
How much memory your 10g xe server is using?
How to pass a cursor variable to a procedure?
Differentiate between post-database commit and post-form commit?
What are the differences between lov and list item?
How to update values in a table in oracle?
How to grant create session privilege to a user in oracle?
What is a oracle database?