How to display all Friday's in a year with date?
Answer Posted / dinesh
DECLARE
c date:='01-JAN-15';
d date:='31-DEC-15';
a number(10);
BEGIN
a:=d-c;
FOR i in 1..a
LOOP
IF to_char(c,'DY')='FRI' THEN
DBMS_OUTPUT.PUT_LINE('THIS IS FRIDAY DATE:='|| ' '|| c);
END IF;
c:=c+1;
END loop;
END;
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What operating systems are supported by oracle sql developer?
what are myisam tables? : Sql dba
What is a sql instance vs database?
What is sql table?
How do I view a procedure in sql?
what is text? : Sql dba
what are the advantages of sql ? : Sql dba
What is gpt format?
What does count (*) mean?
Why are sql stored procedures used?
How to start the command-line sql*plus?
How do I write a sql query in pgadmin 4?
Explain the purpose of %type and %rowtype data types?
explain commit and rollback in mysql : sql dba
What is trigger types in sql?