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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -