I am making a query in the database, I would like to know if you can group elements and display them as if they were fields and within those fields the number of occurrences.
ex: The table looks like this:
nome_tarefa | data_criacao | status
-----------------------------------------
tarefa 1 | 12-02-2016 | pendente
tarefa 2 | 13-02-2016 | pendente
tarefa 3 | 13-02-2016 | concluida
After the query it would look like this:
pendente| concluida |
-----------------------------------------
2 | 1 |