EXERCISE TOPIC▼
SSIS EXERCISES▼
SSIS INTEGRATION SERVICES EXERCISES▼
- Data flow tasks (4)
- Basic data transforms (1)
- Data conversion transforms (2)
- Conditional split transforms (5)
- Lookup transforms (4)
- Looping over files (3)
- Looping over rows (2)
- Merge joins (1)
- Previous versions (18)
- Script tasks (1)
- Variables in script (1)
- Script components (2)
- Accessing file attributes (2)
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.
You can learn how to do this exercise if you attend one of more of the courses listed below!
Software ==> | SSIS Integration Services (46 exercises) |
Version ==> | SSIS 2012 and later |
Topic ==> | Conditional split transforms (5 exercises) |
Level ==> | Average difficulty |
Courses ==> | Introduction to SSIS / Fast track SSIS |
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:
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:

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.