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 you delete a table?
What are sql objects?
What is sql partition function?
Explain what is a database?
What is int identity in sql?
Why partition by is used in sql?
How much does sql cost?
How do I find duplicates in the same column?
How to run pl sql program in mysql?
What are the two types of exceptions in pl/sql?
How do I restart sql?
Can we use update in sql function?
Can we rollback truncate?
What is Materialized View? In What Scenario we Use Materialized View?
what are the advantages and disadvantages of cascading style sheets? : Sql dba