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
What is oracle data type?
How to create a new tablespace in oracle?
In XIR2 if we lost the administration password .How can we regain the password?thanks in advance.
What is a table index?
Can we commit inside a function in oracle?
What is format trigger?
We are using Oracle apps with XML publisher.In that,we are facing some problems while giving a Footer in RTF Template.While giving a footer in RTF Template it is Visible in all the pages,but after the PDF is getiing generated,the Footer are Visible on alternate pages only (like on first page ,third page) and so on. Please provide the Solution for getting the Footer on all the pages.
Calculate difference between 2 date / times in oracle sql?
What is the minimum client footprint required to connect c# to an oracle database?
What is an oracle database?
How is it different from a normal table?
What happens to the current transaction if a ddl statement is executed?
Why does Oracle not permit the use of PCTUSED with indexes?
material view and view disadvantages?
How to convert numbers to characters in oracle?