ALL SOFTWARE EXERCISES
- EXERCISES HOME PAGE (893)
- Access 2010 (66)
- Access VBA Macros (17)
- Advanced VBA (29)
- DAX (0)
- Excel (0)
- Excel 2010 (83)
- Excel 2013 (10)
- Excel 2016 (0)
- Excel VBA Macros (37)
- Power BI - Excel 2013 (25)
- Power BI - Excel 2016 (24)
- Power BI Desktop (26)
- PowerPivot 2010 (26)
- Report Builder (42)
- SQL (192)
- SSAS - multidimensional (21)
- SSAS - tabular (29)
- SSIS Integration Services (40)
- SSRS 2012 (53)
- SSRS 2016 (43)
- Visual Basic (45)
- Visual C Sharp (65)
- WPF - Visual C# (20)
SSIS INTEGRATION SERVICES EXERCISES
Exercise: Use a conditional split to divide up scary rollercoasters
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 relevant Wise Owl course (sadly, only in the UK for now).
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.
The aim of this exercise is to create the following data flow task (help follows!):
Here the task has paused because we're displaying a data viewer for the last step.
Here is what the final data viewer should be showing:
The start of the data viewer (we've edited it to just show 5 columns, but the order of rows may be different for your package).
To achieve this, first create a package called Coasters.
Create a data flow task which starts with an Excel source linked to the workbook in the folder above, followed by a Conditional Split transform:
See below for how the conditional split should work.
The conditional split should have 2 conditions:
|Very scary||The Speed column is more than 50.|
|Quite scary||Either the coaster's Type column is Wood, or the Design column is not Sit Down.|
|Not scary||Any other coasters failing the first two conditions (the default output).|
Be very careful to make sure that you're not making any assumptions about the case of text!
Now add 3 derived column transforms, each of which should create a column called Scariness to hold the values Very scary, Quite scary and Not scary respectively:
Note that we've converted the data type to 20 characters, otherwise we will have trouble merging the 3 Scariness columns in the next step.
Finally, add a couple of Union All transforms:
You'll need to configure the input/output columns carefully for the first transform. The only purpose of the second one is to allow us to show a data viewer for the final set of data.
Run your package and test that it works.
Final thought: was this really the quickest way to accomplish this?