DBA > Job Interview Questions > DB2 ( IBM Database 2 ) Interview Questions

What is an inner join, and an outer join?

More DBA job interview questions and answers at http://dba.fyicenter.com/Interview-Questions/

(Continued from previous question...)

What is an inner join, and an outer join?

Inner Join: combine information from two or more tables by comparing all values that meet the search criteria in the designated column or columns of one table with all the values in corresponding columns of the other table or tables. This kind of join which involve a match in both columnd are called inner joins.

Outer join: Is one in which you want both matching and non matching rows to be returned. DB2 has no specific operator for outer joins, it can be simulated by combining a join and a correlated sub QUERY with a UNION.

(Continued on next question...)

Other Job Interview Questions