add remove split language show hidden hide
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
INSERT 0 10
fio event_type jan feb mar apr may jun jul aug sep oct nov dec
JOHN type1 1 2 1 0 0 0 0 0 0 0 0 0
JOHN type2 0 1 1 0 0 0 0 0 0 0 0 0
Андрей type1 0 2 0 0 0 0 0 0 0 0 0 0
Андрей type2 0 1 1 0 0 0 0 0 0 0 0 0
SELECT 4