Mysql
 sql >> Datenbank >  >> RDS >> Mysql

Verwenden von Aggregatfunktionen in einer SQL-Abfrage

SELECT  MIN(F_Name) Employee_Name ,
        COUNT(1) Activities_Assigned ,
        AVG(Percent_Complete) Load_Value
FROM    ATT_Table a
        INNER JOIN Employee_Table e ON a.Assigned_To_ID = e.Emp_ID
GROUP BY e.Emp_ID