我知道這很簡單,但我是sql新手,並沒有線索如何編寫此查詢。我有3個表格:rekon,流量和筆記。在sql中加入3個表oracle
rekon:
no sex
a F
b F
c M
d F
e M
流量:
no notes_no
a PX
a SX
a
a DX
b MX
b CX
c
c PX
d LX
d WX
筆記:
notes_no no
AX a
BX f
CX g
DX a
EX c
FX c
GX g
HX b
PX a
SX a
我想列出從筆記中不流動的一部分,只有來自客戶端的所有條目, rekon是女性。所以結果應該是
no sex notes_no
a F AX
b F HX
我嘗試使用的語句
notes.notes_no not in (select distinct notes_no from flows)
但我有很多行和Oracle有問題,計算它。
預先感謝您。
那麼,真正的概率。是? – 2014-11-04 10:24:58