Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get number of uses of each part in SynergyCP
SELECT parts.name, COUNT(*) FROM part_server INNER JOIN parts on parts.id = part_server.part_id GROUP BY part_id;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment