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

drupal - using views argument in the view tpl.php file -

silverlight - Applying a style to ItemContainerStyle in C# -

php - Posting PHPBB Forum Thread/Post info in a website -