We can use the ANDoperator for the union !!? what is the difference between using conditions combined them with AND and UNION | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

We can use the ANDoperator for the union !!? what is the difference between using conditions combined them with AND and UNION

UNION && AND

8th Sep 2019, 8:47 PM
MED_BTN
MED_BTN - avatar
5 Answers
+ 5
union is used to make a general variable that can store any type (which are types of members) so when assigning a value to a member in a union variable , the old value will be lost and checks if the left value is non-zero AND the right value is non-zero to return 1 or 0 and cannot store but union can I think I didn't understand again
8th Sep 2019, 9:55 PM
ABADA S
ABADA S - avatar
+ 4
I didn't understand can you elaborate please
8th Sep 2019, 9:15 PM
ABADA S
ABADA S - avatar
+ 4
welcome I hope that you got what you're looking for
9th Sep 2019, 9:25 PM
ABADA S
ABADA S - avatar
+ 1
I'm sorry I didn't pay attention to the lesson 1/UNION combines multiple datasets into a single dataset. and 2/when we are using AND to assemble conditions in WHERE Also combines multiple datasets to single dataset. Where is the difference between using 1 and using 2 ? the same thing with INTERSECT and OR Or there is no difference🙄🙄
8th Sep 2019, 9:34 PM
MED_BTN
MED_BTN - avatar
+ 1
ABADA S 😃😃 Thank you very much I understand u
9th Sep 2019, 9:22 PM
MED_BTN
MED_BTN - avatar