Starter med
a) left(@edition, 15) = 'Express Edition'
b) charindex('Express Edition', @edition) = 1
Indeholder
charindex('Express Edition', @edition) >= 1
Eksempler
venstre
funktion
set @isExpress = case when left(@edition, 15) = 'Express Edition' then 1 else 0 end
iif
funktion (startende med SQL Server 2012)
set @isExpress = iif(left(@edition, 15) = 'Express Edition', 1, 0);
charindex
funktion
set @isExpress = iif(charindex('Express Edition', @edition) = 1, 1, 0);