[SQL] How to calculate the Median in Mysql

Since there are no built in functions to calculate the median value. You need to calculate it yourself.

An important thing to know we refer twice to the country table. Once with x and once with y since we need it in our calculation.


Leave a Reply

Your email address will not be published. Required fields are marked *