Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT F.NOME,
- T.NUMERO,
- D.SIGLA
- FROM FUNCIONARIOS AS F
- INNER JOIN TELEFONES AS T # quero combinar funcionarios com telefones
- ON F.ID_FUNCIONARIO = T.ID_FUNCIONARIO # para isso preciso ligar o id_func de uma com a outra
- INNER JOIN DEPARTAMENTOS AS D # quero combinar funcionarios com os deptos.
- ON F.ID_DEPARTAMENTO = D.ID_DEPARTAMENTO;# preciso ligar o id_depto com a outra tabela
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement