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
Why truncate is used in sql?
How to call shell script from pl sql procedure?
What are aggregate and scalar functions?
What are the different types of database management systems?
how to increment dates by 1 in mysql? : Sql dba
What is Collation Sensitivity ? What are the various type ?
What are the 3 modes of parameter?
what is the difference between clustered and non clustered index in sql? : Sql dba
Whis is not false in primary key?
what are the different functions in sorting an array? : Sql dba
Lookups are a key component in sql server integration services (ssis). Explain its purpose?
What is a constraint?
How delete all data from all tables in sql?
Explain character-manipulation functions?
What is record variable?