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 / 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 |
How can I pass the inner procedure value to outer procedure ?
Which one of the following join types will always create a Cartesian Product? 1. CROSS JOIN 2. LEFT OUTER JOIN 3. RIGHT OUTER JOIN 4. FULL OUTER JOIN 5. INNER JOIN
Can we use ddl commands in pl sql?
What is difference between joins and union?
How do we use distinct statement? What is its use?
What is the use of sqlerrd 3?
Why do we use %rowtype & %type in plsql?
Difference between IN and EXISTS
How do you break a loop in pl sql?
how to fetch common records from two tables? : Sql dba
what is bdb (berkeleydb)? : Sql dba
Is left join faster than join?