Files
secondo/Algebras/PartitionedStream/opt_correl.sql

24 lines
641 B
MySQL
Raw Normal View History

2026-01-23 17:03:45 +08:00
let OrteP = plz feed sortby[Ort asc] groupby[Ort; Anzahl: . count] consume
let OrteP2 = plz feed project[Ort] consume
let OrteP2_Ort = OrteP2 createbtree[Ort]
sql select count(*)
from [ortep as o1, plz as p, ortep2 as o2]
where [o1:anzahl = 5, o1:ort = p:ort, p:ort = o2:ort]
sql select count(*)
from [ortep as o1, plz as p, ortep2 as o2]
where [o1:anzahl = 823, o1:ort = p:ort, p:ort = o2:ort]
sql select count(*)
from [ortep as o1, plz as p, ortep2 as o2]
where [o1:anzahl > 100, o1:ort = p:ort, p:ort = o2:ort]
sql select count(*)
from [ortep as o1, plz as p, ortep2 as o2]
where [o1:anzahl < 10, o1:ort = p:ort, p:ort = o2:ort]