select T.Value
from (values
(charindex('MD', 'FHoisegh MD')),
(charindex('DO', 'FHoisegh MD'))
) as T(Value)
where T.Value > 0
select T.Value
from (values
(charindex('MD', 'FHoisegh MD')),
(charindex('DO', 'FHoisegh MD'))
) as T(Value)
where T.Value > 0