問題詳情

8 設 Table A 的 Schema 為(id name age),Table B 的 Schema 為(id grade),Table A 的內容以 List 表示為:((01Tom 29) (02 Amy 18) (03 Kim 25) (04 Lee 19) (05 Joe 23) (06 Tim 10)),Table B 的內容以 List 表示為:((0130) (02 45) (03 80) (04 70) (05 60) (06 88));試問下列 SQL 程式:select id from A where age > 20 union selectid from B where not (grade < 80),所得的結果以 List 表示為何?
(A)(01 03 05)
(B)(03 06)
(C)(01 03 05) (03 06)
(D)(01 03 05 06)

參考答案

答案:D
難度:適中0.472222
統計:A(7),B(11),C(24),D(51),E(0)

內容推薦

內容推薦