Ver Mensaje Individual
  #1  
Antiguo 31-03-2009
Avatar de julyus
julyus julyus is offline
Miembro
 
Registrado: jul 2006
Ubicación: IN TO PLACES COLOMBIA AND EE.UU
Posts: 121
Reputación: 18
julyus Va por buen camino
tratando de hacer un sum de un count

este pequeno sql debe ahora sumar el campo count al final en Mysql se puede hacer un sum de un count ??? y como quedaria???

Código SQL [-]
 
SELECT DISTINCT (lsd_checklist_id), lsd_checklisttranslations.`en-US` , COUNT(lsd_checklist_id) AS cantidad
FROM lsd_decisions INNER JOIN lsd_checklists ON ((lsd_decisions.lsd_checklist_id)=( lsd_checklists.id)) 
INNER JOIN lsd_checklisttranslations ON ((  lsd_checklists.key)=( lsd_checklisttranslations.key))
GROUP BY (lsd_checklist_id)
LIMIT 10
Responder Con Cita