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
How to open a cursor variable?
What are the differences between primary key and unique key?
How to assign data of the deleted row to variables?
What happens if you use a wrong connect identifier?
What is different types of joins?
How can windows applications connect to oracle servers?
Her departmandaki isçilerden empno' su ikinci sirada olan isçilerin empno, deptno, hiredate, sira_no bigilerini döndüren sorguyu yaziniz?
How to bring a tablespace offline?
normally database take to refresh time 2 hours. but client asked iwant to refresh with in 5 min that same database. do you have any option in BO and Oracle? explain me briefly...kavi
Who developed oracle & when?
is there a tool to trace queries, like profiler for sql server?
How to check your oracle database 10g xe installation?
How to add a new column to an existing table in oracle?
What is meant by a deadlock situation?
What is an oracle user role?