Advertisement
Guest User

Untitled

a guest
Sep 25th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1.  
  2. select * from tabelle T where t.codicetabella = 178 and (t.tutteprocedure = '1' or exists (select * from proceduretabelle pt, settoriprocedure sp where
  3. pt.idtabella = t.idtabelle and pt.idproceduredip = sp.idprocedura and sp.idsettore in (select S.idsettori from settori S, unitaoperative U, areedipartimentale A
  4. where s.idunitaoperativa = u.idunitaoperative and u.idarea = a.idareedip and a.idareedip in (3, 4, 5, 6))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement