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.
Is there a better way to get the total number of rows? Would a temporary variable be better? Also, while using AVG() works just fine in both odd and even cases, it might be a little difficult to understand at a glance.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Weather Observation Station 20
You are viewing a single comment's thread. Return to all comments →
I've only been learning SQL for 2 weeks but here's my solution:
Is there a better way to get the total number of rows? Would a temporary variable be better? Also, while using AVG() works just fine in both odd and even cases, it might be a little difficult to understand at a glance.