What is the standard SQL Query to retrieve the intersection of tables?

前端 未结 9 592
谎友^
谎友^ 2021-02-02 03:57

Selecting the union:

select * from table1 
union 
select * from table1_backup 

What is the query to select the intersection?

9条回答
  •  情话喂你
    2021-02-02 04:49

    For questions like this, I tend to go back to this visual resource:

    A Visual Explanation of SQL Joins

提交回复
热议问题