This query works in getting the number of challenges created by each hacker. I don't really care about the order in this case, I just have the Order By for viewing intermediate results.
Select c2.hacker_id, Count(c2.challenge_id) cnt2 From Challenges as c2 Group By c2.hacker_id Order By cnt2 Desc;
I received the error:
Select *, count(ch.cnt2) cnt1 From (Select c2.hacker_id, Count(c2.challenge_id) cnt2 From Challenges as c2 Group By c2.hacker_id) ch, Challenges c1 Group By cnt1;
ERROR 1056 (42000) at line 1: Can't group on 'cnt1'.
Gain unlimited access to on-demand training courses with an Experts Exchange subscription.Get Access
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE
Connect with Certified Experts to gain insight and support on specific technology challenges including: