Interview Questions   Tutorials   Discussions   Programs   

DB2 - What is the difference between join and union?




545
views
asked mar August 3, 2014 07:09 AM  

What is the difference between join and union?


           

1 Answers



 
answered By Mswami   0  
Basic difference is: A join selects columns from 2 or more tables. A union selects rows.

Join is used to retrieve data from different tables using a single sql statement. Union is used to combine the results of two or more SQL queries.
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert