mysql - count from single column with multiple value -


i have table value below,

id tank_id filledtime 1   tind10 6pm,7pm,9pm,9pm,7pm,11pm,7pm,9pm,7pm,7pm,8pm,7pm,10pm,8pm,7pm,8pm,8pm,6pm,8pm,9pm,8pm,11pm,8pm 

expecting output :

tank_id nooftimefilledinspectime tind10  2(6pm),7(7pm),4(9pm),2(11pm),7(8pm),1(10pm) 

note : filledtime single column

how achieve using mysql query?

is select work on?

select tank_id, count(filledtime), filledtime yourtable filledtimein (select filledtimefrom yourtable) , tank_id = 'tind10' group tank_id,filledtime; 

should outputting this:

tank_id | count | filledtime tind10 | 2 | 6pm

and on...


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -