write a query that displays every Friday in a year with date?
Answer Posted / ranjan
SELECT C_DATE, TO_CHAR(C_DATE,'DY')
FROM
(
SELECT TO_DATE('01-JAN-2016','DD-MON-YYYY')+LEVEL-1 C_DATE
FROM DUAL
CONNECT BY LEVEL <= (SYSDATE - TO_DATE('01-JAN-2016','DD-MON-YYYY')+1)
)
WHERE TO_CHAR(C_DATE,'DY') = 'FRI'
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What is oracle update statement with inner join ?
What is an Oracle index?
why dont we assign not null constraint as table level constraint.
how to handle exceptions in post production
How to use select statement to count the number of rows in oracle?
what is the difference between substr and instr function in oracle?
What is a tns service name?
How to define an oracle sub procedure?
What are the different editions of oracle?
How to shutdown your 10g xe server from command line?
what are the default admin accounts in Oracle 10g ?
What is oracle rowcount?
Explain about your project and its relation to the current job position you are applying to?
How to do clean up if create database failed?
If any one has information regarding interview of NIC (National Informatics Centre),it would be of great help...