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-kotlin Show documentation
Show all versions of leetcode-in-kotlin Show documentation
Kotlin-based LeetCode algorithm problem solutions, regularly updated
# Write your MySQL query statement below
# #Easy #Database #2023_06_01_Time_1268_ms_(94.71%)_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;