g1001_1100.s1075_project_employees_i.script.sql Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leetcode-in-java Show documentation
Show all versions of leetcode-in-java Show documentation
Java-based LeetCode algorithm problem solutions, regularly updated
# Write your MySQL query statement below
# #Easy #Database #2023_08_12_Time_1524_ms_(75.86%)_Space_0B_(100.00%)
select project_id,round(avg(
experience_years
),2) as average_years from Project p
left join
Employee e on p.employee_id=e.employee_id group by p.project_id;