update Relations
set DftFilter='call PrepareSpravkaRLegloDni()'
where RelationTable='Beddays used'
and UPPER(ColName)=UPPER('__OPTIONS__')