LeetCode 197

在这里插入图片描述
這裡要用到inner join 取得previous date 的數據。
所有INNER JOIN 連接所有數據後設定filter條件: DATEDIFF(t1.Date, t2.Date)=1

猜你喜欢

转载自blog.csdn.net/vincentgoodturtle/article/details/91650101
今日推荐