I have a table like this:
id | array
1 | {8,8,8,x,u,x,x}
2 | {8,8,8,x,8,x,x}
...|...
n | {8,u,u,x,u,x,x}
It contains time of work each employee (cols in array are days of week, u
and x
are days free of work).
Is it possible to aggregate those rows into one containing sum of each col (if it's an int)?
My goal is to get from query answer like this: {24,16,16,0,8,0,0}