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
How do I save a stored procedure?
How do I edit a stored procedure?
What is the benefit of foreign key?
what are all the different types of indexes? : Sql dba
Mention what are the benefits of pl/sql packages?
what is datawarehouse? : Sql dba
Which software is used for pl sql programming?
What is compilation error in pl sql?
how to use myisamchk to check or repair myisam tables? : Sql dba
What is out parameter used for eventhough return statement can also be used in pl/sql?
Why do we use function in pl sql?
How long will it take to learn pl sql?
Explain the the update statement in sql?
Is join and inner join the same?
Can a table have no primary key?