sql - Select top record from group -
how table
name code abc code1 def code1 ghi code2 jkl code2 omn code3
get result:
name code abc code1 ghi code2 omn code3
is there simple solution?
i considered want results alphabetical.
select min(name), code mytable group code
Comments
Post a Comment