SELECT VOTETYPES.ID, VOTETYPES.NAME, COUNT(VOTES.ID) AS N...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Ubuntu

Q&A for Ubuntu users and developers

SELECT VOTETYPES.ID, VOTETYPES.NAME, COUNT(VOTES.ID) AS NUMOFVOTES FROM VOTES
LEFT JOIN VOTETYPES
ON VOTES.VOTETYPEID = VOTETYPES.ID
GROUP BY VOTETYPES.ID, NAME
ORDER BY VOTETYPES.ID

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results