I have an access db that i must use to manage interns and the places they work at. Right now, I have two tables: one for the persons, with their personal detail and a bridge to where they work, and another table with the name of the workplace with the respective boss.
Like so:
(table 1, where the persons are listed)
Cadastro_de_estagiarios
id | Ativo | Nível | Lotação | Nome
1 | Verdadeiro | Superior | 1ª Vara Cível | Marina x
3 | Verdadeiro | Médio | 1ª Vara Cível | Raquel x
and so on...
(table 2, where the locations and bosses are specificated)
Cadastro_de_varas_e_juizes
id | Vara | Juiz responsável | Vagas totais nível superior | Vagas totais nível médio
1 | 1ª Vara Cível | fist boss | 2 | 3
2 | 2ª Vara Cível | sec boss | 2 | 4
3 | 3ª Vara Cível | third boss | 2 | 3
and so on...
To clarify, I have two kinds of interns (nível superior e nível médio), as well as two kinds of job vacancies per workplace. Like this: In 1ª Vara Cível, I can have 2 interns with "superior" and 3 with "médio".
What I need to do is get the info on how many interns are placed on each workplace per job type, and then have a query that tells me how many vacancies I still have per place and type.
I appreciate any help. Thanks!
Translating the tables
table1
id | Active | Education level of intern | Workplace | Name
table2
id | Workplace | Boss | Vacancies for college students | Vacancies for high school students