How to select the first row of each group? How to select the first row of each group? sql sql