WISE OWL EXERCISES
SSIS INTEGRATION SERVICES EXERCISES
SSIS Integration Services | Conditional split transforms 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!
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:
So far, so good!
Now add a conditional split which divides coasters up as follows:
|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:
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:
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.