1. distinct 直接去重 2. groupby 对去重字段分组 3. 排序窗口函数 加条件where rnk=1;