igni7e,
Sorry to say, but you are wrong.
Name TotalSubCategoriesCount
-------------------------------- -----------------------
Games 1
FPS 2
Strategy 2
Doom 2
HL 2
StarCraft 1
(6 row(s) affected)
that's the result of your query
and your query after my modifications
Name SubCategoryCount
-------------------------------- ----------------
FPS 2
Strategy 1
(2 row(s) affected)
The mistake you made is to compare C1.ID_Bond to C2.ID_Bond
rather than C2.ID_Bond to C1.ID