結果 : using distinct with aggregate functions in sql