Puoi farlo come segue: insert into table2 (MBID,artist) select MBID,max(artist) from table1 group by MBID