Multiple Choice Questions - SQL Server Joins - Set 6
1. Self joins can be either an outer join or an inner join.
2. A join in which the values in the columns, that are to be joined, are compared using a comparison operator, is called an . . . . . . join.
A) left outer
3. In case of full outer join Nulls are added to the unmatched rows on . . . . . . .
A) left side
B) right side
C) both sides
D) all of above
4. If there are reasonably large tables then which of the following join will use maximum system resources unnecessarily:
A) Right join
B) Left join
C) Inner join
D) Cross join
5. Joins are always done pairwise.
6. Which operators can benefit from batch processing:
A) hash join
B) merge join
D) nested loop join
7. Inner Joins are the default join type, so if you wish, you can use just the . . . . . . keyword in your Inner Join operations.
8. In an equi-inner join, rows without matching values are not eliminated from the join result.
9. Outer joins are often employed when a secondary table has a foreign-key constraint to the primary table and permits nulls in the foreign key column.
10. It is possible to specify more than one join type in the query hint and allow SQL Server to choose the least-expensive one. A . . . . . . . hint takes precedence over a . . . . . . hint if both are specified.
A) query, join operator
B) join operator, query
1) a, 2) c, 3) c, 4) d, 5) a, 6) a,c,e, 7) b, 8) b, 9) a, 10) b