> 3. Ezután az eredmény:
> mysql> select length(concat(o1,o2,o3,o4,o5)) \
> - length(replace(concat(o1,o2,o3,o4,o5),'1','')) \
> as 1_elofordulas from jegyek;
Talán jelen esetben
mysql> select 5 - length(replace(concat(o1,o2,o3,o4,o5),'1','')) \
as 1_elofordulas from jegyek;
SzTZs