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 the different type of normalization? : Sql dba
How many types of normalization are there?
How do you rename a table in sql?
Why do we use triggers?
what is a trigger in mysql? : Sql dba
Is pl sql a programming language?
Define sql delete statement.
How long will it take to learn pl sql?
What is primary key and foreign key with example?
What is an exception in pl/sql?
What are conditional predicates?
where are cookies actually stored on the hard disk? : Sql dba
How many subqueries can be nested in a statement?
Explain mutating table error.
Explain the purpose of %type and %rowtype data types with the example?