write a query that displays every Friday in a year with date?
Answer Posted / sivareddy
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 <= to_date('31-dec-2016','dd-mon-yyyy') - TO_DATE('01-JAN-2016','DD-MON-YYYY')+1)
WHERE TO_CHAR(C_DATE,'DY') = 'FRI'
/
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the use of consistent option in exp command.
How would you edit your CRONTAB to schedule the running of /test/test.sh to run every other day at 2PM?
what is the dual table in oracle?
List the types of joins used in writing subqueries?
How to connect to a local oracle 10g xe server?
What is recycle bin in Oracle?
Why does oracle 9i treat an empty string as null?
How to display row numbers with the records?
Is there an oracle sql query that aggregates multiple rows into one row?
How to create a new table in oracle?
What happens to the current transaction if the session is ended?
How to define a data source name (dsn) in odbc manager?
How to create a table interactively?
What is a private synonym?
How to use subqueries in the from clause in oracle?