t-sql scalar function in where clause

join shbcf.ru