I'm trying to use mysql to select two tables and assign the number of rows to a field eg
I have two tables : Group, Person
I want to make a join in the Group table that shows the number of people assigned to this group through the Group_id field in Person .
Select I did:
SELECT u.* , (SELECT COUNT(*) FROM uniforms where u.id) as quantidade from uniforms_group U
however in return the amount of all rows is being assigned to all fields: