Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is a pragma statement?

1262


What is assignment operator in pl sql?

1038


explain commit and rollback in mysql : sql dba

1020


How to get list of all tables from a database?

1160


What are the various restrictions imposed on view in terms of dml?

966


What is raw datatype in sql?

1045


How does sql*loader handles newline characters in a record? : aql loader

1046


what is a materialized view? : Sql dba

1062


Explain about various levels of constraint.

949


What is pl sql record in oracle?

1035


How to display the current date in sql?

1078


Can we enter data in a table in design view?

969


what is the difference between join and union? : Sql dba

1113


Why commit is not used in triggers?

1040


What is a sql schema used for?

1105