How to display all Friday's in a year with date?
Answer Posted / nihar meher
declare
a date;
b date;
c number(15);
begin
select trunc(sysdate,'yyyy') into a from dual;
select add_months(trunc(sysdate,'yyyy'),12)-1 into b from dual;
c:=b-a;
for i in 1..c
loop
if to_char(a,'dy')='fri'
then
dbms_output.put_line(a);
end if;
a:=a+1;
end loop;
end;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what are all the different types of indexes? : Sql dba
Does a primary key have to be a number?
Does sql view stored data?
What is the use of nvl function?
What is an index in sql with example?
How many triggers can be applied on a table?
How sql query is executed?
What is a table partition?
What is pl sql block in dbms?
How is a process of pl/sql compiled?
Define select, insert, create, delete, update, drop keywords
What is indexing in sql and its types?
Why indexing is needed?
Are subqueries faster than joins?
Any attempt to navigate programmatically to disabled form in a call_form stack is allowed?