select @temp= cast(Right_xml as xml).query('/WorkItem/WorkForm/WorkCtrl')
from Platform.FormRight
where flow_set_id = 632
select T.c.value('@CtrlCode', 'varchar(max)')
from @temp.nodes('/WorkCtrl') as T(c)
from Platform.FormRight
where flow_set_id = 632
select T.c.value('@CtrlCode', 'varchar(max)')
from @temp.nodes('/WorkCtrl') as T(c)