0
I need to list the names of employees who have two or more children (are listed twice or more) in the following select, but have no idea how.
select f.NomeFunc as "Funcionário", d.NomeDep as "Filhos"
from Funcionario f
inner join Dependente d
on f.ID_Func = d.ID_func
Any hint?
Use the GROUP BY / COUNT clause along with the HAVING clause. By the way, it seems to me that you mistakenly used the expression "daughter table" in your question.
– anonimo