Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- select distinct rz.nazwa
- from rzeki rz
- natural join punkty_pomiarowe pp
- join gminy g on (g.identyfikator = pp.id_gminy)
- join powiaty pow on (pow.identyfikator = g.id_powiatu)
- join wojewodztwa w on (w.identyfikator = pow.id_wojewodztwa)
- where w.nazwa = 'małopolskie'
- except
- select distinct rz.nazwa
- from rzeki rz
- natural join punkty_pomiarowe pp
- natural join ostrzezenia o
- where o.czas_ostrzezenia::date between '2016-04-01' and '2016-04-30'
- and o.przekreczony_stan_alarm is not null;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement