討論串[SQL ] 關聯查詢的問題?
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者smlboby (波比)時間14年前 (2011/07/28 00:00), 編輯資訊
0
0
0
內容預覽:
select id,score. from table_b. where exists (. select 1. from table_a. where table_a.id = table_b.id. and (table_b.score < table_a.int1. or table_b.sc

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者terrybob (罪雲樵)時間14年前 (2011/07/27 13:36), 編輯資訊
0
0
0
內容預覽:
[table_a]. id int1 int2 (int1 幾分以下通知, int-幾分以上通知). 1 10 60. 2 20 70. 3 30 80. 4 40 90. 5 50 70. 6 0 0. 7 0 0. 8 0 0. ---------------. [table_b]. id sc
(還有299個字)
首頁
上一頁
1
下一頁
尾頁