ALL SOFTWARE EXERCISES
- EXERCISES HOME PAGE (882)
- Access 2010 (66)
- Access VBA Macros (17)
- Advanced VBA (29)
- Excel 2010 (83)
- Excel 2013 (10)
- Excel 2016 (0)
- Excel VBA Macros (37)
- Power BI - Excel 2013 (25)
- Power BI - Excel 2016 (23)
- Power BI Desktop (26)
- PowerPivot 2010 (26)
- Report Builder 3.0 (42)
- SQL (192)
- SSAS - multidimensional (21)
- SSAS - tabular (29)
- SSIS Integration Services (40)
- SSRS 2016 (33)
- SSRS Reporting Services (53)
- Visual Basic (45)
- Visual C Sharp (65)
- WPF - Visual C# (20)
SSIS INTEGRATION SERVICES EXERCISES
Exercise: Use a conditional split to count two types of row in a table
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.
The above folder contains a CSV file of sightings of whales and porpoises by the Hebridean Whale and Dolphin Trust. Create a package called No real porpoise to import this data.
Create two variables as follows:
|Variable name||What it will be used for|
|NumberHarbourPorpoises||Count the number of harbour porpoises seen|
|NumberOtherSightings||Count the number of sightings of other animals|
The aim of this exercise is to create a conditional split with the following rules:
|The Species column is Harbour Porpoise||Harbour porpoises|
|All other sightings||Anything else|
Create a data flow task which takes the sea life sightings, and splits them into two using the rules above:
Send harbour porpoise sightings down one path, and all other sightings down the other, then use Row Count transforms to count the results.
Add a breakpoint to the PostExecute event of your control flow task:
Package execution should pause when this task has finished execution.
Use your Locals window to check the value of your two variables has been set correctly:
The values that you should see for each variable.
The harbour porpoise (Phocoena Phocoena) is one of six species of porpoise. It is one of the smallest marine mammals - and also one of the most common, if the figures above are anything to go by!
Stop debugging your package, and close it down.