I have two tables:
TABLE_A
PK Value
---- ----------
1 FOX
2 COP
3 TAXI
6 WASHINGTON
7 DELL
5 ARIZONA
4 LINCOLN
10 LUCENT
TABLE_B
PK Value
---- ----------
1 TROT
2 CAR
3 CAB
6 MONUMENT
7 PC
8 MICROSOFT
9 APPLE
11 SCOTCH
I want to have following result:
PK Value
---- ----------
1 FOX
2 COP
3 TAXI
6 WASHINGTON
7 DELL
5 ARIZONA
4 LINCOLN
10 LUCENT
8 MICROSOFT
9 APPLE
11 SCOTCH
how to write sql to get it?
Thanks
問個SQL的問題
所有跟帖:
•
回複:問個SQL的問題
-new111!-
♂
(90 bytes)
()
03/05/2013 postreply
19:55:37
•
I did try this, what I got is:
-奉旨灌水-
♀
(193 bytes)
()
03/05/2013 postreply
20:01:03
•
what I want is:
-奉旨灌水-
♀
(479 bytes)
()
03/05/2013 postreply
20:07:37
•
開始又不說清楚,哎
-令狐衝衝-
♀
(0 bytes)
()
03/05/2013 postreply
20:09:15
•
墨索裏尼總是有理,過去有理,現在有理,而且將來永遠有理
-奉旨灌水-
♀
(87 bytes)
()
03/05/2013 postreply
20:13:21
•
這啥呀?
-令狐衝衝-
♀
(0 bytes)
()
03/05/2013 postreply
20:14:47
•
這句名言出自一部阿爾巴尼亞的電影,電影的名子是《寧死不屈》。
-奉旨灌水-
♀
(320 bytes)
()
03/05/2013 postreply
20:19:59
•
估計你的父母都不一定看過,嘿嘿
-奉旨灌水-
♀
(4 bytes)
()
03/05/2013 postreply
20:21:09
•
直接用not exists 不就行了?搞的這麽複雜
-令狐衝衝-
♀
(0 bytes)
()
03/05/2013 postreply
20:13:46
•
how to deal exist? 不搞的這麽複雜
-奉旨灌水-
♀
(90 bytes)
()
03/05/2013 postreply
20:15:54
•
回複:how to deal exist? 不搞的這麽複雜
-令狐衝衝-
♀
(230 bytes)
()
03/05/2013 postreply
20:21:46
•
OK, I'll try. Thanks, vielen dank.Merci, תוד&#
-奉旨灌水-
♀
(0 bytes)
()
03/05/2013 postreply
20:25:40
•
這個Query好美意義哦~我姐要我說滴
-令狐衝衝-
♀
(140 bytes)
()
03/05/2013 postreply
20:04:52
•
回複:這個Query好美意義哦~我姐要我說滴
-奉旨灌水-
♀
(64 bytes)
()
03/05/2013 postreply
20:09:39
•
回複:這個Query好美意義哦~我姐要我說滴
-slow_quick-
♂
(113 bytes)
()
03/06/2013 postreply
10:02:08
•
捎改一下
-gb692-
♂
(117 bytes)
()
03/07/2013 postreply
18:23:56
•
回複:問個SQL的問題
-slow_quick-
♂
(189 bytes)
()
03/06/2013 postreply
08:35:23
•
NVL for Oracle, IFNULL for MySQL, ISNULL for SqlServer
-slow_quick-
♂
(0 bytes)
()
03/06/2013 postreply
08:47:09
•
回複:問個SQL的問題
-14nn41-
♀
(119 bytes)
()
03/09/2013 postreply
14:37:20