📜  join vs union - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:16.289000             🧑  作者: Mango

代码示例2
JOIN combines the ROWs, we will have longer rows at the end. 
We are joining the rows from two or more related tables.

UNION combines the COLUMNs, we will have longer columns at the end.
UNION combine two different query.
We are joining the columns from two or more related tables.
Can be non related tables but queries must select same
column names with same data type.