
Keenan R. answered 04/29/19
Experienced tutor in Computer Science
UNION makes two queries look like one. JOIN is for examining two or more tables in a single query statement
Keenan R. answered 04/29/19
Experienced tutor in Computer Science
UNION makes two queries look like one. JOIN is for examining two or more tables in a single query statement
Ifeoluwa A. answered 04/23/19
Senior Database Administrator
Join involves joining two or more tables together upon a common relationship between the tables regardless if the column length of those tables in the query expression are not the same. For example:
select name, address, state from b
join c on b.id = c.id
For union, the tables columns we are joining together must be of same length
select name from b
union
select name from c
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.