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
Mention what does plvtab enables you to do when you showthe contents of pl/sql tables?
What is constant in pl sql?
What is sql profiling in oracle?
What are keys in sql?
What is the usage of when clause in trigger?
What is cursor and why it is required?
When is the explicit cursor used ?
what is the use of set statement in tsql? : Transact sql
Is sql low level language?
Can a foreign key be null?
What is the difference between microsoft access and sql server?
Can a select statement fire a trigger?
How is pl sql different from sql?
what are the differences between get and post methods in form submitting. Give the case where we can use get and we can use post methods? : Sql dba
what are the authentication modes in sql server? How can it be changed? : Sql dba