文章目录
-
- 原题题目
- 代码实现(首刷自解)
原题题目
代码实现(首刷自解)
# Write your MySQL query statement below
SELECT project_id,ROUND(SUM(experience_years) / COUNT(*),2) AS average_years
FROM project LEFT JOIN employee USING(employee_id)
GROUP BY project_id
# Write your MySQL query statement below
SELECT project_id,ROUND(SUM(experience_years) / COUNT(*),2) AS average_years
FROM project LEFT JOIN employee USING(employee_id)
GROUP BY project_id