摘要:
620. 有趣的电影 - 力扣(LeetCode) select id, movie, description, rating from cinema where id%2=1 and description != 'boring' order by rating desc 注意奇数的定义,余数为1 阅读全文
摘要:
1667. 修复表中的名字 - 力扣(LeetCode) select user_id, concat(upper(left(name,1)),lower(right(name,length(name)-1))) as name from Users order by user_id left(na 阅读全文
摘要:
2356. 每位教师所教授的科目种类的数量 - 力扣(LeetCode) select teacher_id, count(distinct subject_id) as cnt from Teacher GROUP BY teacher_id 按照老师id分类 1141. 查询近30天活跃用户数 阅读全文
摘要:
1378. 使用唯一标识码替换员工ID - 力扣(LeetCode) SELECT e2.unique_id as unique_id, e1.name as name FROM Employees e1 -- LEFT JOIN EmployeeUNI e2 -- ON e1.id = e2.id 阅读全文
摘要:
1757. 可回收且低脂的产品 - 力扣(LeetCode) select product_id from Products where low_fats = 'Y' and recyclable = 'Y' 下面是一种较为复杂的做法,不推荐 # Write your MySQL query sta 阅读全文