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

相关推荐
2401_846341652 分钟前
C++动态链接库开发
开发语言·c++·算法
ZPC821010 分钟前
【无标题】
人工智能·pytorch·算法·机器人
2301_7644413312 分钟前
使用python构建的STAR实验ΛΛ̄自旋关联完整仿真
开发语言·python·算法
Rainy Blue88316 分钟前
前缀和与差分(蓝桥杯高频考点)
数据结构·算法·蓝桥杯
Dfreedom.16 分钟前
机器学习经典算法全景解析与演进脉络(无监督学习篇)
人工智能·学习·算法·机器学习·无监督学习
421!22 分钟前
ESP32学习笔记之GPIO
开发语言·笔记·单片机·嵌入式硬件·学习·算法·fpga开发
智算菩萨30 分钟前
【How Far Are We From AGI】4 AGI的“生理系统“——从算法架构到算力基座的工程革命
论文阅读·人工智能·深度学习·算法·ai·架构·agi
福赖32 分钟前
《算法:生产车间》
算法
空空潍41 分钟前
LeetCode力扣 hot100一刷完结
算法·leetcode
leaves falling44 分钟前
搜索插入位置(第一个≥target的位置)
算法