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
How to install oracle sql developer?
What is a primary key sql?
What is a dirty read sql?
What is sqlca in powerbuilder?
what is a database lock ? : Sql dba
How can we store rows in PL/SQL using array?
How do you sort in sql?
How many tables can you join in sql?
Why cross join is used?
What is rtm in testing?
How is a process of pl/sql compiled?
What does truncate mean in sql?
How do I edit a stored procedure?
How do I find duplicates in the same column?
which operator is used in query for pattern matching? : Sql dba