How to display all Friday's in a year with date?

Answer Posted / kuldeep

select * from
(

SELECT (TRUNC (SYSDATE, 'yyyy') + LEVEL - 1) dt,
TRIM(TO_CHAR ((TRUNC (SYSDATE, 'yyyy') + LEVEL - 1), 'Day')) dy
FROM DUAL
CONNECT BY LEVEL <= 365

)
where dy='Friday'

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are secondary keys?

735


What are commit, rollback, and savepoint?

738


what happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba

765


Can we insert data into view?

682


What is data types in sql?

705






what is not null constraint? : Sql dba

723


What type of database is cloud sql?

778


Is sql considered coding?

763


What does subquery mean in sql?

739


What is a null value?

852


What are data types in pl sql?

781


What program will open a mdb file?

682


What is the primary use of normalization?

704


How do you exit in sql?

815


Is sqlite good enough for production?

734