What is semi-join in database?

前端 未结 3 502
梦毁少年i
梦毁少年i 2020-12-05 00:38

I am having trouble while trying to understand the concept of semi-join and how it is different from conventional join. I have tried some article already but not satisfied w

3条回答
  •  长情又很酷
    2020-12-05 00:52

    As I understand, a semi join is a left join or right join:

    What's the difference between INNER JOIN, LEFT JOIN, RIGHT JOIN and FULL JOIN?

    So the difference between a left (semi) join and a "conventional" join is that you only retrieve the data of the left table (where you have a match on your join condition). Whereas with a full (outer) join (I think thats what you mean by conventional join), you retrieve the data of both tables where your condition matches.

提交回复
热议问题