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
Why packages are used in oracle?
Differentiate between post-database commit and post-form commit?
Is it possible to center an object horizontally in a repeating frame that has a variable horizontal size ?
What is a procedure in oracle?
How to convert csv to table in oracle?
How to use "startup" command to start default instance?
Difference between the “verify” and “feedback” command?
Why we use bulk collect in oracle?
An automatic job running via DBMS_JOB has failedKnowing only that its failed, how do you approach troubleshooting this issue?
How to load excel data sheet to oracle database
Explain the use of record option in exp command.
What happens if you set the sga too low in oracle?
What is define in oracle?
what are the default admin accounts in Oracle 10g ?
How a tablespace is related to data files?