mysql exe

没事刷到了,上午刷都刷了,整理一下吧

lc1873

Write your MySQL query statement below

SELECT

employee_id,

CASE

WHEN employee_id % 2 = 1 AND name NOT LIKE 'M%' THEN salary

ELSE 0

END AS bonus

FROM Employees

ORDER BY employee_id;

lc619

Write your MySQL query statement below

SELECT

MAX(num) AS num

FROM (

SELECT num

FROM MyNumbers

GROUP BY num

HAVING COUNT(*) = 1

) AS single_numbers;

lc1148

Write your MySQL query statement below

select

author_id as 'id'

from

Views

where

Views.author_id = Views.viewer_id

group by

author_id

order by

author_id

lc183

Write your MySQL query statement below

select Customers.name as 'Customers'

from Customers

where Customers.id not in (

select Orders.customerId

from Orders

)

lc196

Write your MySQL query statement below

DELETE p1 #只删除表p1

FROM Person AS p1

INNER JOIN Person AS p2

WHERE p1.Email = p2.Email

AND p1.Id > p2.Id

相关推荐
复杂网络7 小时前
多个 Claude Code 与多个 Codex 协同工作:设计与实现方案
算法
HjhIron1 天前
面试常客:字符串算法从入门到进阶
算法·面试
吴佳浩1 天前
DeepSeek DSpark:Confidence-Scheduled Speculative Decoding 技术解析
人工智能·算法·deepseek
触底反弹1 天前
🧠 搞懂 Token,才算真正入门大模型——从分词原理到 Embedding 语义实战
javascript·人工智能·算法
vivo互联网技术1 天前
ICLR 2026 | 基于后验采样的图像恢复方法LearnIR:人脸去阴影、去雾
人工智能·算法·aigc
浮生望1 天前
JS字符串与回文算法:从包装类到双指针的面试进阶之路
javascript·算法
黄敬峰1 天前
面试必刷:从JS底层包装类到双指针,彻底搞懂字符串与回文算法
算法
地平线开发者2 天前
J6B vio scenario sample
算法
BothSavage2 天前
Trae远程开发中DeepSeek自定义模型4054错误的排查与修复
算法