Advertisement
Guest User

Untitled

a guest
Dec 7th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. select distinct rz.nazwa
  2. from rzeki rz
  3. natural join punkty_pomiarowe pp
  4. join gminy g on (g.identyfikator = pp.id_gminy)
  5. join powiaty pow on (pow.identyfikator = g.id_powiatu)
  6. join wojewodztwa w on (w.identyfikator = pow.id_wojewodztwa)
  7. where w.nazwa = 'małopolskie'
  8. except
  9. select distinct rz.nazwa
  10. from rzeki rz
  11. natural join punkty_pomiarowe pp
  12. natural join ostrzezenia o
  13. where o.czas_ostrzezenia::date between '2016-04-01' and '2016-04-30'
  14. and o.przekreczony_stan_alarm is not null;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement