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
Which dictionary tables and/or views would you look at to diagnose a locking issue?
Can we convert a date to char in oracle and if so, what would be the syntax?
What do you mean by redo log file mirroring?
What is private procedure oracle?
What is the difference between PFILE and SPFILE in Oracle?
How many types of segments in Oracle?
How does the on-delete-cascade statement work?
what happened to the global index when I truncate the data in one of the partition?
why should i declare foreign key constraint as self relation instead of binary relation in tables ?
What is ASM (Automatic Storage Management) in Oracle?
what is the difference between substr and instr function in oracle?
What is oracle database 10g express edition?
How to add a new column to an existing table in oracle?
How to handle a single quote in oracle sql?
What is the relation of a user account and a schema?