首页 > TAG信息列表 > 首刷

Leetcode Mysql 1075. 项目员工 I(DAY 15)

文章目录 原题题目代码实现(首刷自解) 原题题目 代码实现(首刷自解) # 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 projec

Leetcode Mysql 1571. 仓库经理(DAY 6)

文章目录 原题题目代码实现(首刷自解) 原题题目 代码实现(首刷自解) # Write your MySQL query statement below SELECT name AS WAREHOUSE_NAME,SUM(units*width*length*height) AS VOLUME FROM warehouse AS w join products AS p on w.product_id = p.product_id GR

Leetcode Mysql 1873. 计算特殊奖金(DAY 4)

文章目录 原题题目代码实现(首刷自解) 原题题目 代码实现(首刷自解) # Write your MySQL query statement below SELECT employee_id,if(employee_id%2 = 0 or name like 'M%',0,salary) bonus FROM employees