You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
V tom view chybí obvody u některých voleb (př. komunálních)
WITH nejnovejsi AS (
SELECT*FROMvolby.v_kandidatiWHERE
volby ='ep'AND datum = (SELECTmax(datum) FROMvolby.v_kandidatiWHERE volby ='ep')
), opakovani as (
SELECT
vk.*, nj.datumas nejnovejsi_datum
FROMvolby.v_kandidati vk
inner join nejnovejsi nj using(jmeno, volby)
where1=1and abs((vk.datum-vk.vek*365) - (nj.datum-nj.vek*365)) <365
)
select
jmeno, string_agg(distinct strana, ', ') strany,
max(case when datum = nejnovejsi_datum then strana else null end) strana_nyni
from opakovani
group by jmeno
havingcount(distinct strana) >1limit1000;
The text was updated successfully, but these errors were encountered:
Hlavní problémy:
v_kandidati
nikde automatizovanéThe text was updated successfully, but these errors were encountered: