Dimulai Dengan
a) left(@edition, 15) = 'Express Edition'
b) charindex('Express Edition', @edition) = 1
Berisi
charindex('Express Edition', @edition) >= 1
Contoh
left
fungsi
set @isExpress = case when left(@edition, 15) = 'Express Edition' then 1 else 0 end
iif
fungsi (dimulai dengan SQL Server 2012)
set @isExpress = iif(left(@edition, 15) = 'Express Edition', 1, 0);
charindex
fungsi
set @isExpress = iif(charindex('Express Edition', @edition) = 1, 1, 0);