sql21(Leetcode1174即时食物配送2)

代码:

sql 复制代码
# Write your MySQL query statement below

select round (
    sum(order_date = customer_pref_delivery_date) * 100 /
    count(*),
    2
) as immediate_percentage
from Delivery
where (customer_id, order_date) in (
    select customer_id, min(order_date)
    from delivery
    group by customer_id
)
相关推荐
暮雨疏桐2 小时前
MySQL SQL Mode及其说明
数据库·sql·mysql·sql mode
Dream it possible!3 小时前
LeetCode 热题 100_只出现一次的数字(96_136_简单_C++)(哈希表;哈希集合;排序+遍历;位运算)
c++·leetcode·位运算·哈希表·哈希集合
MarkHard1238 小时前
Leetcode (力扣)做题记录 hot100(34,215,912,121)
算法·leetcode·职场和发展
_星辰大海乀9 小时前
数据库约束
java·数据结构·数据库·sql·链表
多多*9 小时前
Java反射 八股版
java·开发语言·hive·python·sql·log4j·mybatis
Kidddddult9 小时前
力扣刷题Day 46:搜索二维矩阵 II(240)
算法·leetcode·力扣
第十六年盛夏.11 小时前
【网络安全】SQL注入
sql·web安全·网络安全
大模型最新论文速读13 小时前
在Text-to-SQL任务中应用过程奖励模型
数据库·人工智能·sql·深度学习·语言模型·自然语言处理
是代码侠呀14 小时前
从前端视角看网络协议的演进
leetcode·开源·github·github star·github 加星
luo_guibin16 小时前
DVWA在线靶场-SQL注入部分
数据库·sql·mysql