Given a table
+------------+-----------+
| Number | Count |
+------------+-----------+
| 0 | 7 |
+------------+-----------+
| 1 | 1 |
+------------+-----------+
| 2 | 3 |
+------------+-----------+
| 4 | 1 |
+------------+-----------+
Which is representing such a number sequence: 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 4
find the median number, in this case it's 0, with sql. You will need to run this query in hive (qubole)
Thoughts?