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

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.lqws.cn/news/190045.html

相关文章:

  • clickhouse 学习总结
  • Charles 全流程指南:安装、设置、抓包与注意事项
  • Redis知识
  • 缓解骨质疏松 —— 补钙和补维 D
  • LangChain【8】之工具包深度解析:从基础使用到高级实践
  • C++.OpenGL (6/64)坐标系统(Coordinate Systems)
  • C++单例模式教学指南
  • 2003-2024年高铁列车信息数据
  • PP-OCRv5_server_det.yml参数解释
  • 【PDF PicKiller】PDF批量删除固定位置图片工具,默认解密,可去一般图、背景图、水印图!
  • 图片切割工具:智能分割长图并控制文件大小
  • 谷歌云代理商 | 游戏行业专属方案:谷歌云实时多人游戏服务器架构
  • 使用 Docker Compose 从零部署 TeamCity + PostgreSQL(详细新手教程)
  • 35.成功解决编写关于“江协科技”编写技巧第二期标志位积累的问题
  • vue3学习(toRefs和toRef,computed计算属性 ,v-model指令,箭头函数)
  • 【leetcode】3. 无重复字符的最长子串
  • 跟我学c++中级篇——理解类型推导和C++不同版本的支持
  • 如何在Lyra中创建一个新的Game Feature Plugin和Experience游戏体验
  • 前端flex、grid布局
  • idea中 maven 本地仓库有jar包,但还是找不到,解决打包失败和无法引用的问题
  • AC68U刷梅林384/386版本后不能 降级回380,升降级解决办法
  • day35-系统编程之网络编程IV及MQTT协议
  • docker数据管理
  • hot100 -- 8.二叉树系列
  • 父组件prop传向子组件的值,被子组件直接v-model绑定 功能不生效
  • JavaWeb笔记
  • 每日八股文6.6
  • kafka消息积压排查
  • 深入理解指针(二)
  • 我爱学算法之—— 前缀和(中)