row_number()over(partition by ta.tsrid order by ta.firstcreate asc nulls last) as tt可以用这种方法,排个序,再在外面套一层查询,取第一条数据就OK了