我正在研究一个具有以下阶段的管道,
我尝试了以下方法,
查询1:
select A.a, A.b, A.c from A
LEFT JOIN B
ON (A.a= B.a AND A.b = B.b AND A.c = B.c)
where B.d IS NULL
Query2:
select C.a, C.b, C.c from C
JOIN B
ON (C.a = B.b AND C.b = B.b)
Query3:
select COUNT(*) from C
where not exists(select D.a,D.b.D.c where D.a=C.a AND D.b=C.b AND D.c=C.c);
只需尝试找出逻辑不正确的地方。
感谢帮助:)