How About Union Operation? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How About Union Operation?

To perform a union operation columns in inquiries must be the same

14th Sep 2016, 2:24 PM
Meida Dwi K
Meida Dwi K - avatar
2 Answers
+ 1
For union or union all operations you must have same numbers of columns in queries and also the data type should match, unless you explicitly cast it to some other type union will you the unique data
14th Sep 2016, 3:01 PM
Sandeep
0
For Union operation, number of columns must be the same and the data type also should be the same for the tables which we are performing union and Union All.
14th Sep 2016, 3:11 PM
Rohan Raj
Rohan Raj - avatar