SELECT * FROM ALEFT INNER JOINB ON A.value = B.value;SELECT * FROM ALEFT INNER JOINB ON A.value = B.value WHERE B IS NULL; -- or SELECT * FROM ALEFT OUTER JOINB ON A.value = B.value;SELECT * FROM AFULL OUTER JOINB ON A.value = B.value;SELECT * FROM ARIGHT INNER JOINB ON A.value = B.value;SELECT * FROM ARIGHT INNER JOINB ON A.value = B.value WHERE A.value IS NULL; -- or SELECT * FROM ARIGHT OUTER JOINB ON A.value = B.value;SELECT * FROM AFULL OUTER JOINB ON A.value = B.value WHERE A.value IS NULL OR B.value IS NULL;SELECT * FROM AINNER JOINB ON A.value = B.value;