Exercise: Get a list of all the dinosaur time periods which don't match

This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.

The answer to the exercise will be included and explained if you attend the course listed below!

Category ==> SSIS Integration Services  (40 exercises)
Topic ==> Lookup transforms  (4 exercises)
Level ==> Relatively easy
Course ==> Introduction to SSIS
Before you can do this exercise, you'll need to download and unzip this file (if you have any problems doing this, click here for help).

You need a minimum screen resolution of about 700 pixels width to see our exercises. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.

In SQL Server Management Studio, open the SQL script in the above folder and execute it to get a table of geological periods:

The table of periods

The geological periods to which dinosaurs can belong - we hope.

 

Create a package called Dodgy Dinos, and within this create a data flow task which imports the list of dinosaurs from the Excel workbook in the above folder:

Dinosaurs source

Untick all of the columns apart from the first four.

  

Now add a lookup transform to look up the period for each dinosaur in the SQL Server table Periods, and report the errors:

Lookup transform

Send the non-matching rows down to a Union All transform, and use a data viewer to see the periods which don't match.

 

We won't spoil the surprise by revealing the anomalous data, but the two offending dinosaurs should show up in your data viewer.

When this is all working, close the package down.

This page has 0 threads Add post