DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Outer joining

Threaded View

  1. #3
    Join Date
    Dec 2002
    Location
    Bangalore ( India )
    Posts
    2,434
    try

    Code:
    from 
    (Select ws.(Primary_Col_List),Emp.* from employee Emp, work_summary ws Where ws.emp_id=emp.emp_id(+)) e, 
    pay_group pg, 
    work_summary ws1,
    work_summary ws2, 
    work_summary ws3, 
    work_summary ws4, 
    work_summary ws5,
    work_summary ws6
    where 
    nvl(e.emp_val1,#request.dbLocation#) = #request.dbLocation#
    and nvl(e.emp_val1,pg.paygrp_name) = pg.paygrp_name
    and ws1.emp_id = NVL(e.emp_id,ws1.emp_id) and e.(cols of ws)=ws1.(cols of pk)
    and ws2.emp_id = NVL(e.emp_id,ws2.emp_id) and e.(cols of ws)=ws2.(cols of pk)
    and ws3.emp_id = NVL(e.emp_id,ws3.emp_id) and e.(cols of ws)=ws3.(cols of pk)
    and ws4.emp_id = NVL(e.emp_id,ws4.emp_id) and e.(cols of ws)=ws4.(cols of pk)
    and ws5.emp_id = NVL(e.emp_id,ws5.emp_id) and e.(cols of ws)=ws5.(cols of pk)
    and ws6.emp_id = NVL(e.emp_id,ws6.emp_id) and e.(cols of ws)=ws6.(cols of pk)
    and pg.paygrp_end_date-42 = ws1.wrks_work_date
    and pg.paygrp_end_date-35 = ws2.wrks_work_date
    and pg.paygrp_end_date-28 = ws3.wrks_work_date
    and pg.paygrp_end_date-21 = ws4.wrks_work_date
    and pg.paygrp_end_date-14 = ws5.wrks_work_date
    and pg.paygrp_end_date-7 = ws6.wrks_work_date
    Abhay.
    Last edited by abhaysk; 09-15-2003 at 04:32 AM.
    funky...

    "I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."

    "Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width