Problem with Subquery, group by

is this the same question as

if so It would be better to continue that thread to keep it in context.