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
what is not null constraint? : Sql dba
Can we use commit inside a trigger?
Explain the uses of database trigger.
What are the 3 types of behavioral triggers?
What is the difference between sql and t sql?
What is a schema sql?
what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba
What do you mean by query optimization?
Why is there a need for sqlcode and sqlerrm variables?
Mention what are the benefits of pl/sql packages?
What are the types of keys?
What is an ndf file?
What do you mean by dbms? What are its different types?
How to call a javascript function from pl sql?
Can we use ddl statements in stored procedure sql server?