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
What are the attributes of the cursor?
What are operators in oracle?
How to omit columns with default values in insert statement in oracle?
How to select some rows from a table in oracle?
How do we get field details of a table?
Explain cascading triggers.
How to write a query with a left outer join in oracle?
What is oracle open database communication (odbc)?
How to load a large xml file?
Explain the difference between sql and oracle?
What happens if you lost a data file?
What are the different windows events activated at runtime ?
How to define a data field as not null?
How to get a list of all user accounts in the database?
What is PL/SQL ?