This is supposed to be a very simple problem, but somehow I am completely stuck... This is a simplified example to show the problem:
Table:
int ID (primary key)
varchar Child
varchar Toy
Running
SELECT Child, Toy FROM TestTable
gives me:
Child Toy
------------------------
A T_A
B T_B
A T_C
C T_D
A T_E
B T_F
I need a query that returns me the Child/Toy entries only for children that have more then 2 toys - only one in this example. So the output should look like this:
Child Toy
------------------------
A T_A
A T_C
A T_E