nuanshen 最近的时间轴更新
nuanshen

nuanshen

V2EX 第 533766 号会员,加入于 2021-02-19 16:19:28 +08:00
nuanshen 最近回复了
1 天前
回复了 ccc00 创建的主题 程序员 求助,不会写前端代码的困惑
先学会描述清楚需求,然后去 Google ,去问 gpt ,去各种论坛问,大概率能问到解决法案,抄的多了就会了
65 天前
回复了 wuyadaxian 创建的主题 程序员 论生产环境的屎山代码。
谁没经历过屎上雕花呢
@fregie 确实
238 天前
回复了 FaiChou 创建的主题 程序员 使用 Tampermonkey 捕获 ChatGPT 发送前的内容
@Byzliu 我甚至会先在备忘录里编辑好
这需求能居然能要到一周的开发时间,搁我们领导最多给三天(也是一前端一后端)
2022-11-19 14:44:01 +08:00
回复了 qiyong 创建的主题 程序员 面试中遇到的一道 sql 题
这简单啊,不过销量字段类型先改成 int 吧,
求组内总销量用 sum(sales_volume) over(partition by group_id) ,
销量排序 rank()over(order by sales_volume desc)

# mysql8
select t.goods_name `商品名`,
t.sales_volume `商品销量`,
t.group_name `商品组名`,
t.group_sales_volume `商品组总销量`
from (
select t.goods_id,
t.sales_volume,
g.name goods_name,
gp.name group_name,
sum(t.sales_volume)over(partition by g.group_id) group_sales_volume,
rank() over (order by t.sales_volume) sales_rank
from goods_sales_record t
left join goods g on g.id = t.goods_id
left join goods_group gp on gp.id = g.group_id
) t
where t.sales_rank<=3
order by t.group_sales_volume desc,t.sales_volume desc;
2022-11-10 10:19:03 +08:00
回复了 ponypony 创建的主题 程序员 想买一台主机, Mac 或者 Win。V 友们求建议( Java )
@OnlineParty 同应用切换窗口快捷键是 Command + `
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   908 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 22:21 · PVG 06:21 · LAX 15:21 · JFK 18:21
Developed with CodeLauncher
♥ Do have faith in what you're doing.