冷艳的西红柿刷牛客
冷艳的西红柿刷牛客
全部文章
分类
归档
标签
去牛客网
登录
/
注册
冷艳的西红柿刷牛客的博客
全部文章
(共19篇)
题解 | 更新员工信息表
SELECT EMPLOYEE_ID, POSITION, LAST_UPDATE_DT FROM ( SELECT EMPLOYEE_INFO.EMPLOYEE_ID, ( ...
2025-08-26
0
14
题解 | 未下单用户登陆渠道统计
#不使用group by和join而是窗口函数的写法 select channel, cnt from ( select channel, cnt, row_number() over(...
2025-08-26
0
17
题解 | 统计每个产品的销售情况
with sales_part as( select product_id, sum(monthly_quantity) * unit_price as total_sales, unit_price, sum(monthly_...
2025-08-25
0
12
题解 | 商品销售总额分布
select true_method, count(*) as cnt from ( select product_id, ( case ...
2025-08-25
0
12
题解 | 商品销售排名
select product_name, convert(sum((succ_fail) * price), signed) as total from ( select ucl.product_id, ( ...
2025-08-24
0
13
题解 | 商品价格排名
select product_id, product_name, type, price from ( with rank_product_info as( select product...
2025-08-24
0
19
题解 | 完成员工考核试卷突出的非领导员工
#注释是不使用窗口函数,直接使用group by和inner join完成 # select # emp_record.emp_id, # emp_record.emp_level, # tag # from # ( # select # ...
2025-08-24
0
14
题解 | 完成员工考核试卷突出的非领导员工
select emp_record.emp_id, emp_record.emp_level, tag from ( select emp_level, emi.emp_id, ...
2025-08-24
0
12
题解 | 查询连续登陆的用户
select lt.user_id from login_tb as lt where exists ( select 1 from login_tb as lt2 where lt2.user_id=lt.user_id an...
2025-08-23
0
13
首页
上一页
1
2
下一页
末页