Union and Joins
What is difference between Union and Joins? And where w use this in sql srver?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajeesh MenothPosted Feb 11, 2016, 10:24 PM
joins combine data into new columns. If two tables are joined together, then the data from the first table is shown in one set of column alongside the second table’s column in the same row.
Unions combine data into new rows. If two tables are “unioned” together, then the data from the first table is in one set of rows, and the data from the second table in another set. The rows are in the same result.
Rajeev PunhaniPosted Feb 11, 2016, 2:14 PM
If the above solution is helpful then,accept the answer.
Nigel FernandesPosted Feb 10, 2016, 2:59 AM
Raja TPosted Feb 5, 2016, 7:30 AM
The UNION operator is used to combine the result-set of two or more SELECT statements.