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 the use of db2 optimizer?

0 Answers  


How to handle null values in db2

4 Answers  


SQLCODE = -199, ERROR: ILLEGAL USE OF KEYWORD CHAR, TOKEN KEY was expected

0 Answers  


How do you retrieve the data from a nullable column?

2 Answers  


How are write I/Os from the buffer pool executed?

1 Answers  






What does the RUNSTATS Utility do?

4 Answers  


DB2 is a A) data base/data communication system B) data base C) RDBMS D) Programming language

4 Answers   Accenture,


What are the 2 sqlcodes that are returned?

0 Answers  


What is the physical storage length of the data types date, time, and timestamp?

0 Answers  


What is the difference between group by and order by?

2 Answers   IBM, TCS,


How many clustering indexes can be defined for a table?

2 Answers  


When a COBOL-DB2 program in PRODUCTION is updating main tables and gone for long run, what have to do?

0 Answers   Broadridge,


Categories