Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Support semi/anti-joins #36

Open
jtaylor-sfdc opened this issue Feb 5, 2013 · 0 comments
Open

Support semi/anti-joins #36

jtaylor-sfdc opened this issue Feb 5, 2013 · 0 comments

Comments

@jtaylor-sfdc
Copy link
Contributor

A semi-join between two tables returns rows from the first table where one or more matches are found in the second table. The difference between a semi-join and a conventional join is that rows in the first table will be returned at most once. Even if the second table contains two matches for a row in the first table, only one copy of the row will be returned. Semi-joins are written using the EXISTS or IN constructs.

An anti-join is the opposite of a semi-join and is written using the NOT EXISTS or NOT IN constructs.

There's a pretty good write-up here on semi/anti joins.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants