We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Can someone explain why it says count(h.hacker_id) instead of count(s.hacker_id)?
I have tried both ways and they both work, I just do not understand why.
Shouldn't count(h.hacker_id) just count how many rows are in the hackers table? Which I would assume would be one row per user?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Top Competitors
You are viewing a single comment's thread. Return to all comments →
Can someone explain why it says count(h.hacker_id) instead of count(s.hacker_id)?
I have tried both ways and they both work, I just do not understand why. Shouldn't count(h.hacker_id) just count how many rows are in the hackers table? Which I would assume would be one row per user?