what is the difference between join and union?

Answers were Sorted based on User's Feedback



what is the difference between join and union?..

Answer / s

Join returns only rows that are qualified based on the Join
predicate. Whereas UNION retrieves both result sets above
and below the UNION operator and sorts to remove duplicates
before it returns the First row to the pgm

Is This Answer Correct ?    10 Yes 4 No

what is the difference between join and union?..

Answer / suresh ramaiyan

Join is used retrive the data from two or more tables.
Union is used to join the result of two queries.

Is This Answer Correct ?    7 Yes 5 No

what is the difference between join and union?..

Answer / lokesh chauhan

Join is used to established a conditional selection from 2
different tables, while union is used to select similar
data based on different conditions.

Is This Answer Correct ?    7 Yes 6 No

what is the difference between join and union?..

Answer / ananda kumar

join retrive the data more than one table using single sql
query where as union combine the results of two or more sql
queries.

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More DB2 Interview Questions

What is DCLGEN?

2 Answers  


What is image copy in db2?

0 Answers  


What is a dbrm in db2?

0 Answers  


What is copy book?

1 Answers   Thomson Reuters,


db2 query I have one table with the following details. SNO SNAME DOJ ------ -------------------- ---------- 10 KRISH 2007-03-19 20 REDDY 2007-05-19 30 RRRRR 2007-05-19 40 BBBBB 2008-05-19 50 CCCCC 2009-05-19 60 JJJJJ 2009-05-19 70 JJJJJ 2004-05-19 i want the output in the following format:( no of students joined in each year(no nedd to consider about month and date) year count --------- ---------- 2004 1 2007 3 2008 1 2009 2

9 Answers   TCS,






What is the difference between plan and package in db2?

0 Answers  


what is different three logs in DB2?

1 Answers   Syntel,


Normalization in DB2 – first normal form, second normal form

4 Answers   Virtusa,


is it compulsory commitment control in journal?

0 Answers   TCS,


What is the difference between bind and rebind in db2?

0 Answers  


what is the Foreign key? explain?

2 Answers  


What is cursor with hold option in db2?

0 Answers  


Categories