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
Where are my tempfiles, I don't see them in v$datafile or dba_data_file?
Does truncate remove indexes?
What is difference between cursor and trigger?
How many types of tables are there?
Mention what pl/sql package consists of?
Is primary key always clustered index?
What are the different ways to optimize a sql query?
Can we use two order by clause in query?
How do I create a sql database?
Is ms sql traffic encrypted?
what does it mean to have quoted_identifier on? : Sql dba
What is full join?
What is the trigger in sql?
What is the function that is used to transfer a pl/sql table log to a database table?
how tsql statements can be written and submitted to the database engine? : Transact sql