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 does sql developer connect to oracle database?
Is json a nosql?
What is difference between sql function and stored procedure?
When sql appeared?
What is rowtype?
What is the difference between join and natural join?
Is progress software supports to ( pl/sql )?
What is pl sql block structure?
What are the parts of a basic sql query?
tell me about various levels of constraint. : Sql dba
What is a trigger word?
What is normalization sql?
How to execute a stored procedure?
Is full outer join same as cross join?
Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)