I have two tables
parent{
parent_id
}
child{
child_id
parent_id
}
I need to find a parent with parameters are children id
Ex: Find a parent has exactly children (1, 2, 3)
I tried "Where child_id IN (1, 2, 3)" but it will return incorrect parent in case parent has children(1, 2, 3, 4)
I can hard code with php but I ask for mysql solution.