Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
560 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
Software ==> | SSIS Integration Services (28 exercises) |
Topic ==> | Lookup transforms (4 exercises) |
Level ==> | Harder than average |
Subject ==> | SSIS training |
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.
In Management Studio. open the SQL script in the above folder and execute it. This should create two tables:
The aim of the exercise is to import a list of films into the FilmsForLookupExercise table, setting the genre id for each (and adding any new genres which don't exist).
Create a package called Generate genres whose control flow should contain four tasks:
Part | Type | What it should do |
---|---|---|
1 | Execute SQL | Delete any existing rows in the FilmsForLookupExercise table. |
2 | Data flow | Import the films from the workbook in the above folder, matching the genre to the Genre table in SQL Server and adding any new genres found to this table. The resulting of running this part should be to add two new genres to the table, which will automatically be given the numbers 23 and 24 (the next available numbers). |
3 | Data flow | Import the films again, matching the genre to the Genre table (which we now know will work), and returning the genre id. Send the results of this to the FilmsForLookupExercise table. |
4 | Data flow | Import the FilmsForLookupExercise table rows, and use a conditional split to show only those where the genre id is more than 22 (ie films for genres just added). Use a data viewer to show these rows. |
The GenreId column is an identity one, which means that when you add a new genre row the id number will automatically be set to one greater than the previous maximum. Be careful to add only one row for each new genre found!
As well as adding rows to the Genre and FilmsForLookupExercise tables, the package should produce the following data viewer:
There are 3 films in the Software genre, and one in the Dark side genre.
When you've got this package working, close it down!
You can find other training resources for the subject of this exercise here:
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.