| id |
| 10001 |
| 10003 |
| ... |
| id |
| 10002 |
| 10003 |
| ... |
select user.* from A left outer join B on A.id=B.id where B.id is null
select user.* from A join B on A.id=B.id where B.id is null
select user.* from A right outer join B on A.id=B.id where B.id is null
select user.* from A inner join B on A.id=B.id where B.id is null