Guest User

Untitled

a guest
Dec 14th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. select l.location, i.descr, i.lic_no, i.QOH,l.std_cpct STD,l.curr_cpct BEZET,l.exp_cpct Onderweg from locations l
  2. left join v_inv_lic i on l.location = i.location
  3. where work_zone in ('TIP06','WII68','WIR06','WFC2D')
  4. and l.status = 'A'
  5.  
  6. select l.location, l.std_cpct STD,l.curr_cpct BEZET,l.exp_cpct H_Onderweg, i.descr, i.lic_no, i.QOH, t.LIC_NO W_Onderweg, i.descr DESCR2 from locations l left outer join TASKS t on
  7. l.location = t.dst_location left outer join v_inv_lic i on
  8. i.lic_no = t.LIC_NO
  9.  
  10. where work_zone in ('TIP06','WII68','WIR06','WFC2D')
  11. and l.status = 'A'
Add Comment
Please, Sign In to add comment