and on the basis of device name(APPLE,NOKIA,SAMSUNG) I want to create a bar chart which will show "no. of device VS device".
I want to show this in a jsp page.
Any input from yourside will be highly apprciated.
SELECT device, COUNT(device) AS device_count
FROM user_management
GROUP BY device
ORDER BY device_count DESC
device_count will gives you how many times each device was used.
Rest have to be done on JSP level.
If you would run on MS SQL you could make it more complicated like create function to fetch result into what ever you want like how many % of total is nokia users.
I do not think MySQL have capacity to do that.
Bookmarks