• Oops! Sorry about the typo - the ";" in the first snippet before CASE should, of course, be a comma!