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...

i hv 30 rows with date.ex:1month hav 4 weeks i want 1st day of the every week.write the qry for that.example jan has 4 weeks
i need 1st dd for evry wk

Answer Posted / kavitha singh

select year,week,date1,to_char(date1,'Day') day
from
(
select year, week,
next_day( to_date( '04-jan-' || year, 'dd-mon-yyyy' ) + (week-2)*7, 'mon' ) date1
from (select '2011' year, rownum week from all_objects where rownum <= 53 ))

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is rdbms? : Sql dba

962


If a cursor is open, how can we find in a pl/sql block?

1105


What is the primary key?

879


Explain normalization and what are the advantages of it?

892


What version is sql?

966


What is the difference between a procedure and a function?

1013


What are the popular database management systems in the it industry?

930


what are the advantages and disadvantages of cascading style sheets? : Sql dba

1007


When is the explicit cursor used ?

982


Can you select everything, but 1 or 2 fields, without writer's cramp?

934


What are crud methods?

971


What is the difference between function, procedure and package in pl/sql?

1138


Mention what does plvtab enables you to do when you showthe contents of pl/sql tables?

1115


What is the clause we need to add in function body to return variable?

968


how can we destroy the cookie? : Sql dba

961