Select Data  «Prev  Next»

Multiple Table Outer Join - Exercise

Retrieving Data from Multiple Tables with Inner and Outer Joins, Part 2

Objective: Practice creating an outer join.

Exercise Scoring

This exercise is worth a total of 25 points. You will receive up to 25 points for accurately creating the outer join as described in the instructions.

Instructions

Consider the Sales table that looks like this:
DivisionIDSaleAmount
101150000
102250000
10310000
104700000

Consider the Division table that looks like this:
DivisionIDDivisionName
101North East
102South East
103Central
104North West
105South West

Construct a LEFT outer join query to return the DivisionName and SaleAmount for each division, even if that division has no sales.

Submitting the Exercise

Type or paste your Transact-SQL statement into the text box below, then click Submit to submit it and view a results page.