I have created a Scalar Functions, it was created successfully, but when I call the function using select statement, it says Invalid object name \'dbo.fun_functional_score\
You have a scalar valued function as opposed to a table valued function. The from clause is used for tables. Just query the value directly in the column list.