当前位置: 首页 > backend >正文

leetcode sql50题

在中文站没找到对应的集合,想来自己动手拷贝过来,方便大家面试复习用,对应英文站点: https://leetcode.com/studyplan/top-sql-50/

Select

  1. #1757. 可回收且低脂的产品
    • 链接: https://leetcode.cn/problems/recyclable-and-low-fat-products/
  2. #584. 寻找用户推荐人
    • 链接: https://leetcode.cn/problems/find-customer-referee/
  3. #595. 大的国家
    • 链接: https://leetcode.cn/problems/big-countries/
  4. #1148. 文章浏览 I
    • 链接: https://leetcode.cn/problems/article-views-i/
  5. #1683. 无效的推文
    • 链接: https://leetcode.cn/problems/invalid-tweets/

Basic Joins

  1. #1378. 使用唯一标识码替换员工ID
    • 链接: https://leetcode.cn/problems/replace-employee-id-with-the-unique-identifier/
  2. #1068. 产品销售分析 I
    • 链接: https://leetcode.cn/problems/product-sales-analysis-i/
  3. #1581. 进店却未进行过交易的顾客
    • 链接: https://leetcode.cn/problems/customer-who-visited-but-did-not-make-any-transactions/
  4. #197. 上升的温度
    • 链接: https://leetcode.cn/problems/rising-temperature/
  5. #1661. 每台机器的平均处理时间
    • 链接: https://leetcode.cn/problems/average-time-of-process-per-machine/
  6. #577. 员工奖金
    • 链接: https://leetcode.cn/problems/employee-bonus/
  7. #1280. 学生们参加各科测试的次数
    • 链接: https://leetcode.cn/problems/students-and-examinations/
  8. #570. 至少有5名直接下属的经理
    • 链接: https://leetcode.cn/problems/managers-with-at-least-5-direct-reports/
  9. #1934. 确认率
    • 链接: https://leetcode.cn/problems/confirmation-rate/
  10. #620. 有趣的电影
    • 链接: https://leetcode.cn/problems/not-boring-movies/

Basic Aggregate Functions

  1. #1251. 平均售价
    • 链接: https://leetcode.cn/problems/average-selling-price/
  2. #1075. 项目员工 I
    • 链接: https://leetcode.cn/problems/project-employees-i/
  3. #1633. 各赛事的用户注册率
    • 链接: https://leetcode.cn/problems/percentage-of-users-attended-a-contest/
  4. #1211. 查询结果的质量和占比
    • 链接: https://leetcode.cn/problems/queries-quality-and-percentage/
  5. #1141. 查询近30天活跃用户数
    • 链接: https://leetcode.cn/problems/user-activity-for-the-past-30-days-i/

Sorting and Grouping

  1. #1084. 销售分析 III
    • 链接: https://leetcode.cn/problems/sales-analysis-iii/
  2. #596. 超过5名学生的课
    • 链接: https://leetcode.cn/problems/classes-more-than-5-students/
  3. #1729. 求关注者的数量
    • 链接: https://leetcode.cn/problems/find-followers-count/
  4. #619. 只出现一次的最大数字
    • 链接: https://leetcode.cn/problems/biggest-single-number/
  5. #1731. 每位经理的下属员工数量
    • 链接: https://leetcode.cn/problems/the-number-of-employees-which-report-to-each-employee/
  6. #183. 从不订购的客户
    • 链接: https://leetcode.cn/problems/customers-who-never-order/

Advanced Select and Joins

  1. #1789. 首位 K 个员工的主要部门
    • 链接: https://leetcode.cn/problems/primary-department-for-each-employee/
  2. #610. 判断三角形
    • 链接: https://leetcode.cn/problems/triangle-judgement/
  3. #180. 连续出现的数字
    • 链接: https://leetcode.cn/problems/consecutive-numbers/
  4. #1164. 指定日期的产品价格
    • 链接: https://leetcode.cn/problems/product-price-at-a-given-date/
  5. #1204. 最后一个人
    • 链接: https://leetcode.cn/problems/last-person-to-fit-in-the-bus/
  6. #1978. 上级经理已离职的员工
    • 链接: https://leetcode.cn/problems/employees-whose-manager-left-a-company/

Subqueries

  1. #184. 部门工资最高的员工
    • 链接: https://leetcode.cn/problems/department-highest-salary/
  2. #585. 2016年的投资
    • 链接: https://leetcode.cn/problems/investments-in-2016/
  3. #1341. 电影评分
    • 链接: https://leetcode.cn/problems/movie-rating/
  4. #602. 好友申请 II :谁有最多的好友
    • 链接: https://leetcode.cn/problems/friend-requests-ii-who-has-the-most-friends/
  5. #1321. 餐馆营业额变化增长
    • 链接: https://leetcode.cn/problems/restaurant-growth/
  6. #185. 部门工资前三高的所有员工
    • 链接: https://leetcode.cn/problems/department-top-three-salaries/

Advanced String Functions / Regex / Clause

  1. #1484. 按日期分组销售产品
    • 链接: https://leetcode.cn/problems/group-sold-products-by-the-date/
  2. #1527. 患某种疾病的患者
    • 链接: https://leetcode.cn/problems/patients-with-a-condition/
  3. #196. 删除重复的电子邮箱
    • 链接: https://leetcode.cn/problems/delete-duplicate-emails/
  4. #176. 第二高的薪水
    • 链接: https://leetcode.cn/problems/second-highest-salary/
  5. #1667. 修复表中的名字
    • 链接: https://leetcode.cn/problems/fix-names-in-a-table/
  6. #1517. 查找拥有有效邮箱的用户
    • 链接: https://leetcode.cn/problems/find-users-with-valid-e-mails/

Complicated Stuff

  1. #1193. 每月交易 I
    • 链接: https://leetcode.cn/problems/monthly-transactions-i/
  2. #1174. 即时食物配送 II
    • 链接: https://leetcode.cn/problems/immediate-food-delivery-ii/
  3. #550. 游戏玩法分析 IV
    • 链接: https://leetcode.cn/problems/game-play-analysis-iv/
  4. #2356. 每位教师所教授的科目种类的数量
    • 链接: https://leetcode.cn/problems/number-of-unique-subjects-taught-by-each-teacher/
  5. #1070. 产品销售分析 III
    • 链接: https://leetcode.cn/problems/product-sales-analysis-iii/
  6. #1907. 按分类统计薪水
    • 链接: https://leetcode.cn/problems/count-salary-categories/
http://www.xdnf.cn/news/12540.html

相关文章:

  • placeholder不显示and模板字符串无效
  • JeecgBoot低代码管理平台
  • 软考 系统架构设计师系列知识点之杂项集萃(83)
  • 1、cpp实现Python的print函数
  • 构建 MCP 服务器:第 4 部分 — 创建工具
  • 【人工智能】一些基本概念
  • 虹科方案 | 高效集成!CAN/CAN FD通信与数字信号控制一体化
  • 流量治理:熔断 vs 限流的协同防御体系构建‌
  • AI Infra运维实践:DeepSeek部署运维中的软硬结合
  • 应用宝和苹果App Store上架条件、审核规则及操作流程文档
  • 【更新至2024年】2000-2024年上市公司财务困境RLPM模型数据(含原始数据+结果)
  • SpringBoot整合RocketMQ与客户端注意事项
  • 网页端 VUE+C#/FastAPI获取客户端IP和hostname
  • LOOI机器人的技术实现解析:从手势识别到边缘检测
  • 深度解读JS内存机制:8种泄漏案例与优化方案
  • RFC8489-STUN
  • Chromium 136 编译指南 Windows篇:depot_tools 配置与源码获取(二)
  • 什么是空闲钩子函数?
  • MySQL数据库表设计与索引优化终极指南
  • Linux驱动:再看静态映射和动态映射
  • C#中的路由事件(Routed Events)
  • k8s入门教程(集群部署、使用,镜像拉取失败网络问题排查)
  • freeRTOS xQueueGenericSend以及xQueueGenericReceive函数疑问
  • 在uni-app中如何从Options API迁移到Composition API?
  • CMake控制VS2022项目文件分组
  • [蓝桥杯 2024 国 B] 立定跳远
  • Linux中shell编程表达式和数组讲解
  • 使用C/C++和OpenCV实现图像拼接
  • Python绘图库及图像类型之特殊领域可视化
  • CAU人工智能class7 迁移学习