Okay, hier sind die Ergebnisse:
Code
select from_unixtime(dateline-7*24*60*60) `Mindestwahlalter(UTC)`, dateline-7*24*60*60 `unixtime` from mybb_threads where tid = 14577;
Code
+-----------------------+------------+
| Mindestwahlalter(UTC) | unixtime |
+-----------------------+------------+
| 2016-06-12 20:29:12 | 1465756152 |
+-----------------------+------------+
Code
select count(u.uid) `Wahlberechtigt und aktiv` from mybb_users u where u.regdate <= 1465756152 and u.lastpost >= unix_timestamp('2016-01-01');
Code
+--------------------------+
| Wahlberechtigt und aktiv |
+--------------------------+
| 106 |
+--------------------------+
Durch die Massenmail sind auch ein paar "inaktive" Mitglieder aus der Versenkung gekommen, vielen Dank dafür.
Code
select count(distinct pv.uid) `Anzahl Stimmen` from mybb_polls p, mybb_pollvotes pv where p.pid = pv.pid and p.tid = 14605;
Code
select count(uid) `Gültige Stimmen` from (select pv.uid from mybb_polls p, mybb_pollvotes pv, mybb_users u where p.pid = pv.pid and pv.uid = u.uid and p.tid = 14605 and u.regdate <= 1465756152 group by pv.uid having count(pv.voteoption) <= 6) x;
Die 2 nicht gültigen Stimmen sind im Übrigen "alles angekreuzt".
Code
select case pv.voteoption
when 1 then 'CDW'
when 2 then 'Nik'
when 3 then 'mrshadowtux'
when 4 then 'oreissig'
when 5 then 'Der Doktor'
when 6 then 'Spit'
when 7 then 'Xaar'
when 8 then 'thosch97'
when 9 then 'freaked'
when 10 then 'smaecks'
when 11 then 'Blue'
when 12 then 'winfreak'
when 13 then 'Pain'
when 14 then 'geiger2006'
end `Kandidat`, count(pv.voteoption) `Stimmen` from mybb_polls p, mybb_pollvotes pv where p.pid = pv.pid and p.tid = 14605 and pv.uid in (select pv.uid from mybb_polls p, mybb_pollvotes pv, mybb_users u where p.pid = pv.pid and pv.uid = u.uid and p.tid = 14605 and u.regdate <= 1465756152 group by pv.uid having count(pv.voteoption) <= 6) group by pv.voteoption order by 2 desc, 1 asc;
Alles anzeigen
Code
+-------------+---------+
| Kandidat | Stimmen |
+-------------+---------+
| Xaar | 40 |
| Blue | 31 |
| Pain | 29 |
| oreissig | 28 |
| Spit | 26 |
| winfreak | 20 |
| thosch97 | 18 |
| freaked | 16 |
| mrshadowtux | 16 |
| Der Doktor | 12 |
| Nik | 9 |
| CDW | 8 |
| geiger2006 | 8 |
| smaecks | 8 |
+-------------+---------+
Alles anzeigen
Diese Werte können anhand der Prozentwerte korreliert bzw. von den jetzigen Mods direkt in der Umfrage eingesehen werden.
In dem Sinne wurde das jetzige Moderatorenteam vollständig bestätigt und durch Pain und winfreak ergänzt.
Vielen Dank für euere Stimmen.

