查询语句select stateID,stepID from pro1 where code=217 group by stateid,stepID order by stateid,stepID desc 查出来的结果是
stateID stepID:
1         2
1         1
1         0
2         1
2         0
我想要的结果是:
stateID stepID
2         1
2         0
1         2
1         1
1         0上面的语句怎么改,求大虾指点!!!!!!!!!!!