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
How do I create a sql database?
how to drop an existing table in mysql? : Sql dba
define sql insert statement ? : Sql dba
what is the difference between primary key and unique key? : Sql dba
What is the difference between microsoft sql and mysql?
What do you think about pl/sql?
What is triggering circuit?
What is microsoft t sql?
What is the use of procedures?
Name three sql operations that perform a sort.
how can we optimize or increase the speed of a mysql select query? : Sql dba
How can a pl sql block be executed?
Is primary key is clustered index?
What are the rules to be applied to nulls whilst doing comparisons?
Mention what are the benefits of pl/sql packages?