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



i hv 30 rows with date.ex:1month hav 4 weeks i want 1st day of the every week.write the qry for that..

Answer / 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

More SQL PLSQL Interview Questions

What is dynamic SQl and how you will create and execute dynamic sql?

2 Answers   TCS,


what are null values? : Sql dba

0 Answers  


Is postgresql a server?

0 Answers  


What is trigger in pl sql?

0 Answers  


How can one get sql*loader to commit only at the end of the load file? : aql loader

0 Answers  


What is the Difference between Procedure and Function.Can we call a Function in a DML?

2 Answers   TCS,


What is dbo in sql?

0 Answers  


How many commands are in sql?

0 Answers  


What is the basic structure of PL/SQL ?

6 Answers  


How many scalar data types are supported in pl/sql?

0 Answers  


what is ref cursor in pl/sql?

3 Answers  


can i write pl/sql code in a package

2 Answers  


Categories