Que devuelve esto?
Código SQL:
Ver originalSELECT P.Despar,SUM(G.Canti) AS total
FROM Partid P
INNER JOIN Gasto G ON P.Id_Par = G.Par_Id
INNER JOIN Mespre M ON G.Mes_Id = M.Id_Mes
INNER JOIN Presup PR ON M.Año = PR.IdAño AND M.Id_Poa = PR.Poa_id
INNER JOIN Poa PO ON PR.Poa_id = PO.Id_poa
INNER JOIN Concep C ON P.Con_Id = C.Id_Con
INNER JOIN Capitu CA ON C.Cap_Id = CA.Id_Cap
WHERE M.Años = 2009
AND M.Id_Poa = 10
GROUP BY P.Despar
ORDER BY P.Despar