RelationalDBDesign
SiteMap
Business Rules
Cursors Views
Database Creation
SQL Monitoring
Database Web Apps
Data Manipulation
Access Features
Tables Queries
Select Data
«Prev
Next»
Queries Cursors Views
SQL-Query Basics
Executing Queries
Batch Queries
System Catalogs
Writing Logic Queries
Dynamic SQL Statements
SQL Server Basics
Selecting Data
Data Overview
Retrieving Data Multiple Tables
Multiple Table Retrieval
Alternate Queries Aliases
Construct Union Queries
Additional Keywords Queries
Define Aggregate Queries
Aggregated Data Queries
Describe Write Subqueries
Using Subqueries - Exercise
Selecting Data Conclusion
Advanced Queries
Inserting Transact SQL Data
Updating Transact-SQL Data
Deleting Data
SQL Statement Punctuation
Insert Values from other Table
Update Values from other Table
Different Datatypes
Subquery Statements
Indexing Query Strategies
Full Text Searching
Full Text Searching
Full Text Searching Components
Defining Full Text Indexes
Implement Full Text Search
Full Text Searching
Multiple Table InnerJoin - 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:
DivisionID
SaleAmount
101
150000
102
250000
103
10000
104
700000
Consider the Division table that looks like this:
DivisionID
DivisionName
101
North East
102
South East
103
Central
104
North West
105
South 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 them and view a results page.