首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
在线笔面试、雇主品牌宣传
登录
/
注册
jjdhfbu
获赞
8
粉丝
0
关注
0
看过 TA
9
门头沟学院
2024
产品经理
IP属地:广东
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑jjdhfbu吗?
发布(47)
评论
刷题
jjdhfbu
关注TA,不错过内容更新
关注
2023-03-29 10:33
门头沟学院 产品经理
题解 | #列出供应商及其可供产品的数量#
select v.vend_id, count(prod_id) as prod_id from Vendors as v left join Products as p on v.vend_id = p.vend_id group by v.vend_id order by v.vend_id
0
点赞
评论
收藏
分享
2023-03-29 10:25
门头沟学院 产品经理
题解 | #返回产品名称和每一项产品的总订单数#
select prod_name, count(oi.prod_id) as orders from Products as p left join OrderItems as oi on p.prod_id = oi.prod_id group by prod_name order by prod_name
0
点赞
评论
收藏
分享
2023-03-28 23:45
门头沟学院 产品经理
题解 | #确定最佳顾客的另一种方式(二)#
select c.cust_name, sum(oi.item_price*oi.quantity) as total_price from Orders as o inner join OrderItems as oi on o.order_num = oi.order_num inner join Customers as c on o.cust_id = c.cust_id group by cust_name having total_price>=1000 order by total_price
0
点赞
评论
收藏
分享
2023-03-28 23:41
门头沟学院 产品经理
题解 | #返回购买 BR01 的所有顾客的电子邮件(二)#
select cust_email from Orders as o inner join OrderItems as oi on o.order_num = oi.order_num inner join Customers as c on o.cust_id = c.cust_id where oi.prod_id = "BR01"
0
点赞
评论
收藏
分享
2023-03-28 18:33
门头沟学院 产品经理
题解 | #返回顾客名称和相关订单号以及每个订单的总价#
select c.cust_name,oi.order_num, sum(oi.quantity*oi.item_price) as OrderTotal from Orders as o left join OrderItems as oi on o.order_num = oi.order_num left join Customers as c on o.cust_id = c.cust_id group by cust_name,order_num order by cust_name,order_num
0
点赞
评论
收藏
分享
2023-03-28 18:05
门头沟学院 产品经理
题解 | #返回顾客名称和相关订单号#
select cust_name,order_num from Customers inner join Orders on Customers.cust_id = Orders.cust_id #group by cust_name order by cust_name,order_num
0
点赞
评论
收藏
分享
2023-03-28 16:26
门头沟学院 产品经理
题解 | #计算总和#
select order_num, sum(item_price*quantity) as total_price from OrderItems group by order_num having total_price>=1000 order by order_num
0
点赞
评论
收藏
分享
2023-03-28 16:22
门头沟学院 产品经理
题解 | #返回订单数量总和不小于100的所有订单的订单号#
select order_num from OrderItems group by order_num having sum(quantity)>=100 order by order_num count()和sum()的区别注意区分:count():汇总,但是汇总属性总数即你出现几次就count几次sum():汇总,求和函数,对数据的求和相加得出结果
0
点赞
评论
收藏
分享
2023-03-28 16:17
门头沟学院 产品经理
题解 | #每个供应商成本最低的产品#
select vend_id, min(prod_price) as cheapest_item from Products group by vend_id order by cheapest_item
0
点赞
评论
收藏
分享
2023-03-28 16:14
门头沟学院 产品经理
题解 | #返回每个订单号各有多少行数#
select order_num, count(order_num) as order_lines from OrderItems group by order_num order by order_lines 对统计数据进行条件输出,需要先将order_num分组,才能分组统计成功
0
点赞
评论
收藏
分享
2023-03-27 23:57
门头沟学院 产品经理
题解 | #返回 2020 年 1 月的所有订单的订单号#
select order_num,order_date from Orders where year(order_date)=2020 and month(order_date)=01 order by order_date
0
点赞
评论
收藏
分享
2023-03-27 23:50
门头沟学院 产品经理
2023-03-27
在牛客打卡4天,今天学习:刷题 65 道
0
点赞
评论
收藏
分享
2023-03-26 20:01
门头沟学院 产品经理
题解 | #21年8月份练题总数#
SELECT count(distinct device_id) as did_cnt, count(question_id) as question_cnt from question_practice_detail where year(date) = 2021 and month(date) = 08
0
点赞
评论
收藏
分享
2023-03-26 17:48
门头沟学院 产品经理
题解 | #浙大不同难度题目的正确率#
select qd.difficult_level, sum(if(qpd.result="right",1,0))/count(qpd.question_id) as correct_rate from question_practice_detail as qpd left join user_profile as up on qpd.device_id = up.device_id left join question_detail as qd on qpd.question_id = qd.question_id where up.university = "浙江大学" grou...
0
点赞
评论
收藏
分享
2023-03-26 11:01
门头沟学院 产品经理
题解 | #截取出年龄#
#俄罗斯套娃式截取 select substring_index(substring_index(profile,",",3),",",-1) as age, count(*) as number from user_submit group by age
0
点赞
评论
收藏
分享
1
2
3
4
关注他的用户也关注了:
牛客网
牛客企业服务