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
Post a Comment