1、SELECT A1.*
FROM A106B AS A1 LEFT JOIN [SELECT 序号,关键字,数值 FROM (SELECT A.*
FROM A106A AS A, A106B AS B
WHERE A.关键字=B.关键字 AND A.序号=B.序号 AND A.数值=B.数值)]. AS DF ON A1.序号 & A1.关键字 & A1.数值= DF.序号 & DF.关键字 & DF.数值
WHERE ISNULL(DF.序号);
2、SELECT *
FROM A106B AS A1
WHERE A1.序号 & A1.关键字 & A1.数值 NOT IN
(SELECT DF.序号 & DF.关键字 & DF.数值 FROM (SELECT A.*
FROM A106A AS A, A106B AS B
WHERE A.关键字=B.关键字 AND A.序号=B.序号 AND A.数值=B.数值) AS DF );
3
SELECT df.*
FROM A106A AS A1 RIGHT JOIN A106B AS df ON A1.序号 & A1.关键字 & A1.数值=DF.序号 & DF.关键字 & DF.数值
WHERE ISNULL(a1.序号);
[此贴子已经被作者于2006-7-28 11:50:06编辑过]
|