I want to create a view which only shows me values which have a % in it.
I tried following
Alter VIEW [dbo].[history] as
select
[objid]
,[interval]
,[value_channel]
,[value_channelid]
,case when [value_text] like '[%]' then right([value text],2)
,[value_raw_text]
,[coverage_raw]
from .....
but I get the error Incorrect syntax near ','.
any idea?