SELECT funcionario_id, data, avaliacao_postura FROM equipe
id funcionario_id data avaliacao_postura
1 1 2014-03-02 -25;-10;-5;-12
2 1 2014-03-01 -25;-10;-18
3 1 2014-03-02 -25;-15;-14
I need to make a select that returns me the sum of the avaliacao_postura
field, making the sum on all dates equal and negative, and the result grouped by date. The result would have to be as in this example:
funcionario_id data avaliacao_postura
1 2014-03-02 -106
1 2014-03-01 -53