In the MySQL database I have these 3 tables:
CONTROLS: Here I make the trainings entries made. Note that you can insert multiple collaborators on the same line
EMPLOYERS:
SECTORS:
ThecontributorscolumnoftheCONTROLtableisaforeignkeyintheCOLLABORATORStable.ThesectorscolumnoftheCOLLABORATORStableisaforeignkeyoftheSECTORStable.
Iwouldlikeaselectthatwouldbringmethenumberofcontributorsbysectorwhoparticipatedinthetraining.
Itwouldlooklikethis: