559 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owls 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
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.
First (if you haven't already done so) run the script shown above to generate the Doctor Who training database.
The aim of this exercise is to create a function called fnEpisodeDescription such that you can count how many episodes there are of each type:
-- count number of episodes of each type
dbo.fnEpisodeDescription(Title) AS 'Episode type',
COUNT(*) AS 'Number of episodes'
Here's what this should return:
It's reassuring to see that the number of first and second parts are the same!
To write this function use the CHARINDEX function to determine whether one string of text exists within another:
Your function should look for the word Part 1 (or failing that, Part 2) in the title passed in.
As a guide, CHARINDEX('owl','Wise Owl') would return 6, whereas CHARINDEX('fox','Wise Owl') would return 0.
When you've got your function and query working, save (optionally) the SQL as Part of a couple.sql, then close it down.
25 Aytoun Street