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

Which query operators in sql is used for pattern matching?

540


is mysql query is case sensitive? : Sql dba

559


What does select count (*) mean in sql?

544


Describe types of sql statements?

543


What is trigger in sql? Explain

535






what happens if null values are involved in expressions? : Sql dba

563


Does truncate need commit?

512


what are the nonstandard string types? : Sql dba

601


How do I view output in sql developer?

574


What is assignment operator in pl sql?

561


what is the difference between sql and t-sql? : Transact sql

597


Is sql a oracle?

521


How many subqueries can be nested in a statement?

501


What is ttitle and btitle?

572


What are transaction and its controls?

559