2
Let us suppose two tables
Table 1 : emp (table of employees)
Campos : emp.no (chave privaria), emp.name (chave múltipla, não primaria)
Table 2: webConference
Campos: webConferencia.no (chave primaria), webConferencia.conferenteno
(não primária, smallint), webConferencia.embaladorno (não primária, smallint)
I want to get the name of the employee (emp.name), being them conferentes (webConferencia.conferenteno
) and packer (webConferencia.embaladorno
), how to relate 1 primary key field of a table with 2 fields of a second table simultaneously?
webConferencia.conferenteno = emp.no
webConferencia.embaladorno = emp.no
I was able to pull together two temporary selects. First I made the left Join with the conference field and then in the second season I made the left Join with the packed field
– Tiago Damasio
Hello @Tiago Damasio if you were able to solve it, add your solution code or an example that you find useful to share with the OS.
– 8biT