Access substitute for EXCEPT clause

前端 未结 4 1187
有刺的猬
有刺的猬 2020-12-07 01:36

How can I get the same result I would get with the SQL code below in ms access? It does not recognize the EXCEPT clause...

SELECT DISTINCT 
             


        
4条回答
  •  半阙折子戏
    2020-12-07 02:07

    SELECT A.x FROM A
    EXCEPT
    SELECT B.x FROM B
    

    corresponds to

    SELECT A.x FROM A 
    LEFT JOIN B 
    ON A.x = B.x 
    WHERE B.x IS NULL
    

提交回复
热议问题