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
Why does for update in oracle 8 cause an ora-01002 error?
How to insert multiple rows with one insert statement in oracle?
How to convert numbers to characters in oracle?
What is the quickest way to export a table to a flat file?
How to use "in" parameter properly?
What is a proxy object?
hey friends, What are the steps I can do to transfer the database from Microsoft Access 2003 to oracle10g (or SQL) Best regards
What is translate in oracle?
What happens to indexes if you drop a table?
What is background process in Oracle?
What is ordinary table in oracle?
Is there a function to split a string in plsql?
How to connect to oracle using service name instead of sid?
How to grant create session privilege to a user in oracle?
What is proxy method?