I once saw a MySQL result where one fetched amount was displayed with * as bar charts. Something like this.
id | amount | bar
----------------------------
1 | 7 | *******
2 | 4 | ****
3 | 0 |
4 | 3 | ***
5 | 9 | *********
6 | 10 | **********
7 | 6 | ******
8 | 3 | ***
9 | 2 | **
10| 0 |
If I remember correctly, it was some kind of RANGE() function that was used in the query, like
SELECT
`id`,
COUNT(*) AS `amount`,
RANGE(`amount`) AS `bar`
FROM
`table`
But I was neither successful researching on google or SO. Anyone knows how to do this or can forward me to the appropriate SO post?
REPEAT(), it wasREPEAT()! Thanks a lot!