我有一个表 有三个字段: code name target其中target是数字.我想先用target排序.然后distinct显示code 和name
其实就是根据销售数据的先后显示code,是一个销售排名的显示请问用sql语句怎么实现?