Mysql count frequency
问题 I've checked similar questions but it didnt help in my precise question. So, my table goes like this: id age 1 30 2 36 3 30 4 52 5 52 6 30 7 36 etc.. I need to count the frequency of ages: age freq 30 2 36 3 52 2 How can I grab this freq? After this I will need to work with that data, so it might be necessary using array? Thanks! function drawChart() { // Create the data table. var data = new google.visualization.DataTable(); data.addColumn('string', 'age'); data.addColumn('number', 'freq');