首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
讲文明的小龙虾在努力
获赞
0
粉丝
0
关注
1
看过 TA
5
IP属地:陕西
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑讲文明的小龙虾在努力吗?
发布(83)
评论
刷题
收藏
讲文明的小龙虾在努力
关注TA,不错过内容更新
关注
2024-03-13 16:55
题解 | #插入记录(三)#
replace into examination_info values(null,9003,'SQL','hard',90,'2021-01-01 00:00:00');
0
点赞
评论
收藏
分享
2024-03-13 16:11
题解 | #插入记录(二)#
insert into exam_record_before_2021 select null,uid,exam_id,start_time,submit_time,score from exam_record where year(submit_time)<2021;
0
点赞
评论
收藏
分享
2024-03-13 16:02
题解 | #插入记录(一)#
insert into exam_record values(null,1001,9001,'2021-09-01 22:11:12','2021-09-01 23:01:12',90),(null,1002,9002,'2021-09-04 07:01:02',null,null);
0
点赞
评论
收藏
分享
2024-03-13 14:46
题解 | #纠错4#
select cust_name,cust_contact,cust_email from Customers where cust_state in ('MI','IL') order by cust_name;
0
点赞
评论
收藏
分享
2024-03-13 14:29
题解 | #将两个 SELECT 语句结合起来(二)#
select * from OrderItems where quantity ='100' or prod_id like 'BNBG%' order by prod_id;
0
点赞
评论
收藏
分享
2024-03-13 13:59
题解 | #将两个 SELECT 语句结合起来(一)#
select * from OrderItems where quantity=100 union all select * from OrderItems where prod_id like "BNBG%" order by prod_id;
0
点赞
评论
收藏
分享
2024-03-13 13:41
题解 | #列出供应商及其可供产品的数量#
select v.vend_id,count(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
点赞
评论
收藏
分享
2024-03-13 13:33
题解 | #返回产品名称和每一项产品的总订单数#
select prod_name,count(order_num)as orders from Products as p left join OrderItems as i on p.prod_id=i.prod_id group by prod_name order by prod_name;
0
点赞
评论
收藏
分享
2024-03-13 13:23
题解 | #返回产品名称和与之相关的订单号#
select prod_name,order_num from Products as p left join OrderItems as i on p.prod_id=i.prod_id order by prod_name;
0
点赞
评论
收藏
分享
2024-03-13 13:16
题解 | #检索每个顾客的名称和所有的订单号(二)#
select cust_name,order_num from Customers as c left join Orders as o on c.cust_id=o.cust_id order by cust_name;
0
点赞
评论
收藏
分享
2024-03-12 17:20
题解 | #检索每个顾客的名称和所有的订单号(一)#
select cust_name,order_num from Customers as c inner join Orders as o on c.cust_id=o.cust_id order by cust_name;
0
点赞
评论
收藏
分享
2024-03-12 17:03
题解 | #确定最佳顾客的另一种方式(二)#
select cust_name,sum(item_price*quantity) as total_price from Customers as c inner join Orders as o on c.cust_id=o.cust_id inner join OrderItems as i on o.order_num=i.order_num group by c.cust_name having total_price >='1000';
0
点赞
评论
收藏
分享
2024-02-27 13:26
题解 | #返回顾客名称和相关订单号以及每个订单的总价#
select c.cust_name,o.order_num, sum(quantity*item_price) as OrderTotal from Customers as c inner join Orders as o on c.cust_id=o.cust_id inner join OrderItems as ot on o.order_num=ot.order_num group by c.cust_name,ot.order_num order by c.cust_name asc,ot.order_num asc;
0
点赞
评论
收藏
分享
2024-02-27 11:58
题解 | #返回顾客名称和相关订单号#
select cust_name,order_num from Customers as c inner join Orders as o on c.cust_id=o.cust_id order by cust_name,order_num;
0
点赞
评论
收藏
分享
2024-02-27 11:16
题解 | #返回每个顾客不同订单的总金额#
select cust_id,sum(item_price *quantity) as total_ordered from OrderItems,Orders where OrderItems.order_num=Orders.order_num group by cust_id order by total_ordered desc;
0
点赞
评论
收藏
分享
1
2
3
4
5
6
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务