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

wht r the requirements for writing a cobol-db2 pgm ?

4 Answers   IBM,


What is node in db2?

0 Answers  


How do you find the maximum value in a column in db2?

0 Answers  


What are the 4 environments which can access DB2 ?

2 Answers  


Say CUST Table contains records like: CUSTNO CUSTNAME CUSTLOC 100 ABC SSS 200 XYZ 300 PQR 400 MNO WWW 500 CVV ------------- ------------- Now write a query to retrieve all records with CUSTLOC no data.

3 Answers   IBM,






I have a subprogram B calling from mainprogram A.I have opened a cursor in A ,Can i fetch the same cursor in subprogram B , If yes , Please explain the reason?

0 Answers   HeadStrong,


What information can you find in SYSIBM.SYSLINKS table?

1 Answers   TCS,


How many Buffer pools are there in DB2 and what are they?

1 Answers   IBM,


what is + sign and -ve sign for sql code ?

1 Answers   TCS,


What is database reorganization?

0 Answers  


What is a db2 schema?

0 Answers  


Is schema the same as database?

0 Answers  


Categories