討論串[SQL ] 挑選A表中某條件值與B表做join
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者rockchangnew (rock)時間9年前 (2016/02/04 11:07), 編輯資訊
0
0
1
內容預覽:
https://goo.gl/photos/nmatoCvvQgK9tVwF8. with tmp_A as(. select row_number() over(partition by id order by [year] desc,[term] desc) as Num ,* From A)S
(還有63個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者Schematic (小小寶的媽)時間9年前 (2016/02/03 23:37), 編輯資訊
0
0
0
內容預覽:
內容/問題描述:. A表. year id term status. 1 90 1 1 1. 2 90 1 2 1. 3 91 1 1 1. 4 91 1 2 1. 5 91 1 3 4. 6 92 1 1 5. 7 90 2 1 1. 8 90 2 2 1. 9 91 2 1 3. 10 90 3
(還有220個字)
首頁
上一頁
1
下一頁
尾頁