Exercise: Find the id number for each X Factor mentor

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 ==> Lookup transforms  (4 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.

In SQL Server Management Studio open the SQL script in the above folder and execute it to show a table of mentors for X Factor contestants:

List of mentors

In the UK version of the X Factor (a reality TV show) each contestant is assigned a mentor to guide them through the procedures. That's all you need to know about the show!

 

The idea behind this exercise is to find the contestants whose mentors don't appear in the list above, and report them as having mentor number 9 (Unknown) instead.  To start, create a package called Mentors, and within this create a variable to make it easier to refer to the unknown mentor id number:

Unknown mentor id variable

Create an integer variable, and set it to equal 9.

Create a data flow task to import the finalists from Excel, and look up for each the mentor id from the Mentor table:

The final package

What the final package could look like.

Check that in the Finalist table that each contestant has a mentor id (six of these will be 9, for Unknown), then close the package down.

This page has 0 threads Add post