advice needed for SQL query -


can 1 provide sql query should used pull out "columna" value has max number "columnb" value "active". means in columnb there value "active" , want pull columna value has max of value active n columnb.

i looking output columna = m1 , count = 4

columna     columnb m1          active m1          active m1          active m1          active m2          failed m2          failed m2          failed m3          pending m3          pending m3          pending 

the results request produced by:

select columna,count(*) table columnb = 'active' group columna 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -