write a query that displays every Friday in a year with date?
Answer Posted / basanti meher
SELECT A_DATE, TO_CHAR(A_DATE,'DY')
FROM
(
SELECT TO_DATE('01-JAN-2016','DD-MON-YYYY')+LEVEL-1 A_DATE
FROM DUAL
CONNECT BY LEVEL <= (366)
)
WHERE TO_CHAR(A_DATE,'DY') = 'FRI'
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
List out the difference between commit, rollback, and savepoint?
List out the components of logical database structure of oracle database.
How to start a new transaction in oracle?
what is the dual table in oracle?
What is a trigger oracle?
What is the usage of analyze command in oracle?
How to grant create session privilege to a user in oracle?
What the is the diff between local index and global index. give some example.
State all possible different index configurations a table can possibly have?
How to define a data field as not null?
Why does Oracle not permit the use of PCTUSED with indexes?
How to write an inner join with the where clause in oracle?
How to assign a tablespace to a users in oracle?
Can group functions be used in the order by clause in oracle?
What is the Tune Query