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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -