Mishki loves to play with data and now she wants some interesting data from the given data. Given two tables:
1) Range_Details : It consists one column Limits containing the ranges of the height of the students, in the form of a-b, where a the lower limit and b is the upper limit of the height.
2) Heights: It consists of one column Height containing the heights of people.
For each height in the Height table, you need to tell the ranges, in which the height is between its lower and upper limit (inclusive both limits). The ranges should be printed in the sorted order of their difference of upper and lower limit.
The data should be printed in the ascending order of heights.
Table : Range_Details
Sample Range_Details Table:
Sample Heights Table: