Last active
January 2, 2018 18:05
-
-
Save Lewiscowles1986/9dfbd501dc714d9d422de3e8527ce9c5 to your computer and use it in GitHub Desktop.
MySQL Bar chart Thing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Note that decimals can be passed but will be truncated to integer values */ | |
SELECT REPEAT('█', 7) AS 'Percent' | |
UNION ALL | |
SELECT REPEAT('█', 7.5) | |
UNION ALL | |
SELECT REPEAT('█', 5) | |
UNION ALL | |
SELECT REPEAT('█', 15) |
Author
Lewiscowles1986
commented
Jan 2, 2018
•
NOTE: Use
UNION ALL
or duplicate values will be eliminated
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment