2張資料表,要比對缺了哪幾筆
◆2張資料表,要比對缺了哪幾筆
OM01 A
|
|
OM02 B |
1、
select Table_1.a1 from (select a from OM01 A LEFT
JOIN OM02 B ON A.OM1001 = B.OM2001)
WHERE B.OM2001 IS NULL
2、
SELECT A.OM1001 FROM OM01 A
WHERE A.OM1001 NOT IN (
SELECT B.OM2001 FROM OM02 B)
EX:
Table_1 a1 |
|
Table_6 a |
SELECT a1 FROM Table_1
WHERE a1 NOT IN (
SELECT a FROM Table_6)
SELECT a FROM Table_6
WHERE a NOT IN (
SELECT a1 FROM Table_1
)
--
強烈建議購物網店或實體店家都必須使用關鍵字廣告or原生廣告來 將Yahoo上與聯播網的廣大流量導至自己的網站!
●Yahoo關鍵字廣告/原生廣告
◆Yahoo廣告方案介紹 : https://goo.gl/5k8FHW
◆Yahoo廣告剖析與運用 : http://goo.gl/4xjUJD