0
Hello guys I have the following code:
SELECT COUNT(*) AS categorias_total, v_lctos_despesa.id_categorias
FROM 'v_lctos_despesa'
INNER JOIN categorias ON (v_lctos_despesa.id_categorias = categorias.id_tipo)
GROUP BY v_lctos_despesa.id_categorias
however the result of it is not correct, I would like him to bring the description of the category and not the id:
categoria1 = 10 categoria2 = 15
he’s bringing:
1 = 10 2 = 15