Exercise: Assign rollercoasters a scariness rating using a conditional split

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 ==> Conditional split transforms  (5 exercises)
Level ==> Average difficulty
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.

Create a new package called Scary coasters, and within this a data flow task.  This should have an Excel source, which gets a list of rollercoasters from the workbook in the above folder:

Data flow task

So far, so good!


Now add a conditional split which divides coasters up as follows:

Rule Category
The Type is Wood and the speed is more than 40 mph Very scary
The coaster is old (opened before 1990) or the Design is not Sit Down Quite scary
All other coasters failing these two conditions Not scary

Add three Derived Column transforms, each of which sets a new column called Scariness to a different value:

Derived column transfers

Also add a Union All transform to reunite the rollercoasters at the bottom, a Sort transform to sort them by the rollercoaster name and a flat file destination to send the results to a new flat file.

Run your package to check that you get 2 scary coasters, 15 quite scary ones and 33 not scary ones, and a text file like this:

Text file showing results

Megafobia is the first coaster in alphabetical order with Scariness factor High.

When you're happy your package is working successfully (it's hard sometimes to write exercises without double entendres), close it down. 

This page has 0 threads Add post