How to display all Friday's in a year with date?
Answer Posted / dinesh
CREATE OR REPLACE PROCEDURE display_day_date(c date,d date,v varchar2) IS
a number(10);
m date:=c;
BEGIN
a:=d-m;
FOR i in 1..a
LOOP
IF to_char(m,'DY')= v THEN
DBMS_OUTPUT.PUT_LINE('THIS IS'||' '|| v ||' ' || 'DATE for the year '||' '||to_char(m,'yyyy')|| ' '|| m);
END IF;
m:=m+1;
END loop;
END;
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are triggers in sql?
Is not equal in sql?
What is the best sql course?
What are the differences between implicit and explicit cursors?
what is an alias command? : Sql dba
What are triggers and its types?
What are basic techniques of indexing?
What is the difference between an inner join and an outer join?
How many sql databases can you have on one server?
What do you mean by rowid?
How exception is different from error?
Is merge a dml statement?
what is index? : Sql dba
What is sql lookup?
What are the types of records?