How can the UNION SQL clause be used? - ProProfs Discuss
Advertisement

How can the UNION SQL clause be used?

Asked by Cerebralrust, Last updated: Mar 10, 2024

+ Answer
Request
Question menu
Vote up Vote down

4 Answers

E. Stanley

E. Stanley

E. Stanley
E. Stanley, Technical writer, Indianapolis

Answered Sep 20, 2018

From the name itself, you can already make a guess on what the union clause can do. It has the ability to combine two different statements. Once these statements are combined, it will form a set that will be unique of the two statements that are combined together.

This also has the ability to get rid of the duplicated in the set if in case there are any. Duplicates may cause problems with combining statements in the long run. Some get confused with the union SQL and JOIN. JOIN will form answers regarding the relationships between the statements that are given and not the statements themselves.

upvote downvote
Reply 

John Adney

John Adney

John Adney
John Adney

Answered Jan 06, 2017

Most of time it come along with join clause
upvote downvote
Reply 

saravyas

saravyas

saravyas
Saravyas

Answered Jan 06, 2017

Most of time it come along with join clause
upvote downvote
Reply 

John Smith

John Smith

John Smith
John Smith

Answered Nov 17, 2016

The SELECT clause only
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.