結果 : explain the difference between an aggregate function and a scalar function in sql with examples