Я пытаюсь добавить вычисленный столбец в таблицу SQL Server 2008 Express.Вычисленный столбец - Неправильный синтаксис рядом с ключевым словом 'when'
Формула:
case when callrecord_contacttype=1 then 'Routed voice'
else when callrecord_contacttype=2 then 'Direct incoming voice'
else when callrecord_contacttype=3 then 'Direct outgoing voice'
else when callrecord_contacttype=4 then 'Direct internal voice'
else when callrecord_contacttype=5 then 'Routed callback'
else when callrecord_contacttype=6 then 'Routed email'
else when callrecord_contacttype=7 then 'Direct outgoing email'
else when callrecord_contacttype=8 then 'Routed chat' else '' end
Но я получаю сообщение об ошибке:
Incorrect syntax near the keyword 'when'.