I have a t_points table in mySql, as an example below.
Name Surname Point
Joe Arnold 120
Michale Black 250
Masha Petrova 300
Natalie Jackson 120
John Turo 200
Bona Meseda 250
Zeyda Nura 150
Zanura Bohara 60
Shaheen Boz 360
Abbas Murat 160
Keira Black 230
Tom Robinson 480
Fred Balka 490
Semia Hudovi 90
Sona Bahari 60
I want to write a query that displays the number of point ranges. Point ranges look like this: a point from 0 to 100, 101 and 200, 201 and 300, 301 and 400. The result should be lower
0_100 101_200 201_300 301_400
3 5 4 3
I think I understand what I want to say. So what query should I use for this result?
Thank.
namco source
share