Functions In Sql Return A Single Value