write a query that displays every Friday in a year with date?
Answer Posted / basanti meher
SELECT A_DATE, TO_CHAR(A_DATE,'DY')
FROM
(
SELECT TO_DATE('01-JAN-2016','DD-MON-YYYY')+LEVEL-1 A_DATE
FROM DUAL
CONNECT BY LEVEL <= (366)
)
WHERE TO_CHAR(A_DATE,'DY') = 'FRI'
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How to define a variable to match a table column data type?
Is there any way to find out when one specific table/view/M-view is used last time. i.e. when one specific object is used in any SELECT statement.
How to pass a cursor variable to a procedure?
How to find out what oracle odbc drivers are installed?
What is a nested table?
What is bulk load in oracle?
What is the string concatenation operator in oracle?
I have a database backup file in .db (ext) form how to conver it into .dmp (ext.) for oracle database
How to establish administrator authentication to the server?
How to specify default values in insert statement using oracle?
How to import one table back from a dump file?
How to loop through a cursor variable?
What is define in oracle?
src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));
What is difference between sid and service name in oracle?