提问人:Goutham mano 提问时间:6/22/2021 最后编辑:Dale KGoutham mano 更新时间:6/22/2021 访问量:95
交易的最短日期
Minimum date of the transaction
答:
0赞
Gordon Linoff
6/22/2021
#1
您可以使用和筛选和聚合:lag()
select account, min(tdate)
from (select t.*,
lag(type) over (partition by account order by tdate) as prev_type
from t
) t
where prev_type = 'Withdrawal'
group by account;
上一个:大查询数据正则表达式
评论