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