-1
I have three tables, the first is occurrence, the second is to individuals and third vehicles. The individual tables and vehicles I made occurrences subformularios. I have the first key in the occurrence id_occurrence, the other tables I have the primary key of them and the foreign keys linked to occurrences. I want in the table vehicles that have a field that shows the names of the individuals related to the occurrence, have to be the individuals who have just been registered or is the same occurrence (id).
uses Inner Join to relate the two tables by id (primary key of the main key with the foreign key of the daughter), selecting the fields you want...
– aa_sp
http://www.bosontreinamentos.com.br/mysql/mysql-inner-join-consultar-dados-em-duas-ou-mais-tabelas-29/
– alan