首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
牛客316468640号
获赞
0
粉丝
0
关注
0
看过 TA
0
天津工业大学
2025
运营
IP属地:河北
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑牛客316468640号吗?
发布(10)
评论
刷题
收藏
牛客316468640号
关注TA,不错过内容更新
关注
2023-07-20 17:56
天津工业大学 运营
题解 | #得分不小于平均分的最低分#
with t2 as (select t.* from exam_record t join examination_info t1 using(exam_id) where tag = "SQL") select min(score) from t2 where score >= (select avg(score) from t2);
0
点赞
评论
收藏
分享
2023-07-20 17:06
天津工业大学 运营
题解 | #SQL类别高难度试卷得分的截断平均值#
select b.tag,b.difficulty, round((sum(a.score)-max(a.score)-min(a.score))/(count(a.score)-2) ,1) as clip_avg_score from exam_record a inner join examination_info b on a.exam_id=b.exam_id where b.tag='SQL' and b.difficulty ='hard' order by a.score;
0
点赞
评论
收藏
分享
2023-07-19 18:00
天津工业大学 运营
题解 | #创建一张新表#
CREATE TABLE user_info_vip ( id int (11) primary key auto_increment comment "自增ID", uid int (11) unique not null comment "用户ID", nick_name varchar(64) comment "昵称", achievement int (11) default 0 comment "成就值", level int (11) comment "用户等级", job varc...
0
点赞
评论
收藏
分享
2023-07-19 16:57
天津工业大学 运营
题解 | #删除记录(二)#
delete from exam_record where submit_time is null or timestampdiff(minute,start_time,submit_time)<5 order by start_time asc limit 3
0
点赞
评论
收藏
分享
2023-07-19 16:52
天津工业大学 运营
题解 | #删除记录(一)#
delete from exam_record where timestampdiff(minute,start_time,submit_time)<5 and score<60
0
点赞
评论
收藏
分享
2023-07-18 09:44
天津工业大学 运营
题解 | #插入记录(二)#
insert into exam_record_before_2021(uid,exam_id,start_time,submit_time,score) ( select uid,exam_id,start_time,submit_time,score from exam_record where year(submit_time)<'2021' );
0
点赞
评论
收藏
分享
2023-07-17 17:06
天津工业大学 运营
题解 | #确定最佳顾客的另一种方式(二)#
select c.cust_name, sum(a.item_price*a.quantity) as total_price from OrderItems a inner join Orders b on a.order_num=b.order_num inner join Customers c on b.cust_id=c.cust_id group by cust_name having sum(a.item_price*a.quantity)>=1000;
0
点赞
评论
收藏
分享
2023-07-17 16:42
天津工业大学 运营
题解 | #返回顾客名称和相关订单号以及每个订单的总价#
select cust_name,b.order_num,sum(c.quantity*c.item_price) as OrderTotal from Customers a inner join Orders b on a.cust_id=b.cust_id inner join OrderItems c on b.order_num=c.order_num group by cust_name,order_num order by cust_name asc,order_num asc ;
0
点赞
评论
收藏
分享
2023-07-17 12:38
天津工业大学 运营
题解 | #返回每个订单号各有多少行数#
select order_num, count(order_num)as order_lines from OrderItems group by order_num order by order_lines;
0
点赞
评论
收藏
分享
2023-07-17 10:39
天津工业大学 运营
题解 | #检索并列出已订购产品的清单#
select order_num,prod_id,quantity from OrderItems where quantity >=100 and prod_id in ('BR01','BR02','BR03');
0
点赞
评论
收藏
分享
1
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务