sql - Group returned result by mysql -


i have following table

table x  labref   name  repeat_status 111      l          1 111      l          1 111      k          1 111      k          1 111      l          2 111      l          2 111      m          1 111      m          1 

the result need

labref   name  repeat_status 111      l          1 111      l          2 111      k          1 111      m          1 

i have tried query not bring result, needs tweaking

select name, repeat_status `x` labref = '111' group repeat_status; 

suggestions!

     select name, repeat_status      `x`      labref = '111'      group name ,repeat_status; 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -