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


Please Help Members By Posting Answers For Below Questions

How to call a stored function in oracle?

578


Explain what are the different type of segments?

582


What is the quickest way to fetch the data from a table?

573


What are the varoius components of physical database structure of oracle database?

575


21. Using a set operator, display the client number of all clients who have ever placed an order and whose whose name does not contain the string Sm.

1627






how may join possible between (requisition with purchase order)

1705


Can a parameter be passed to a cursor?

608


How do I connect to oracle database?

544


What is translate in oracle?

625


If any one has information regarding interview of NIC (National Informatics Centre),it would be of great help...

1741


What is the difference between $oracle_base and $oracle_home?

591


Where are the settings stored for each instance in oracle?

636


How to connect the oracle server as sysdba?

635


if you ctreate table identity

1855


1) What is ONE_SIZE_FITS_ALL approach? 2) Explain the Common & Variable Header of DATA FILE? 3) What are the Drawbacks to using OMF DB? and the Advantages? 4) List out the Advantages of Undo T.spaces over the Undo SEGMENT? 5) Difference between the Temporary tablespace with TEMPFILE and the Tablespace with TEMPORARY Keyword? 6) What are the situation extents are freeing for reuse.

1618