首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
景辞
获赞
5
粉丝
0
关注
0
看过 TA
0
南阳师范学院
2025
IP属地:河南
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑景辞吗?
发布(59)
评论
刷题
收藏
景辞
关注TA,不错过内容更新
关注
2024-05-28 08:39
南阳师范学院
题解 | #返回订单数量总和不小于100的所有订单#
select order_num from OrderItems group by order_num having sum(quantity)>=100 order by order_num;
0
点赞
评论
收藏
分享
2024-05-28 08:38
南阳师范学院
题解 | #返回订单数量总和不小于100的所有订单的订单号#
select order_num from OrderItems group by order_num having sum(quantity)>=100 order by order_num;
0
点赞
评论
收藏
分享
2024-05-28 08:36
南阳师范学院
题解 | #每个供应商成本最低的产品#
select vend_id,min(prod_price) cheapest_item from Products group by vend_id order by cheapest_item;
0
点赞
评论
收藏
分享
2024-05-28 08:35
南阳师范学院
题解 | #返回每个订单号各有多少行数#
select order_num,count(order_num) order_lines from OrderItems group by order_num order by order_lines;
0
点赞
评论
收藏
分享
2024-05-28 08:19
南阳师范学院
题解 | #确定 Products 表中价格不超过 10#
select max(prod_price) max_price from Products where prod_price<=10;
0
点赞
评论
收藏
分享
2024-05-28 08:17
南阳师范学院
题解 | #确定已售出产品项 BR01 的总数#
select sum(quantity) items_ordered from OrderItems where prod_id='BR01';
0
点赞
评论
收藏
分享
2024-05-27 21:25
南阳师范学院
题解 | #顾客登录名#
这道题用到三个函数:concat()用于拼接字符串upper()把字符串转为大写substring()用于从指定位置开始截取指定长度的字符串三者结合就能得到题目要求的用户登陆名select cust_id,cust_name,concat(upper(substring(cust_name,1,2)),'',upper(substring(cust_city,1,3))) user_loginfrom Customers;
0
点赞
评论
收藏
分享
2024-05-27 21:17
南阳师范学院
题解 | #打折#
select prod_id,prod_price,prod_price*0.9 sale_price from Products ;
0
点赞
评论
收藏
分享
2024-05-27 21:14
南阳师范学院
题解 | #检索产品名称和描述(三)#
因为不确定carrots和toy的前后位置关系,所以分为两种情况,一种是carrots在前,一种是toy在前,这两种情况都符合,中间用or连接select * from Productswhere prod_desc like '%carrots%toy%' or prod_desc like '%toy%carrots%';
0
点赞
评论
收藏
分享
2024-05-27 21:10
南阳师范学院
题解 | #检索产品名称和描述(二)#
select * from Products where prod_desc not like '%toy%' order by prod_name;
0
点赞
评论
收藏
分享
2024-05-27 21:08
南阳师范学院
题解 | #检索产品名称和描述(一)#
select * from Products where prod_desc like '%toy%';
0
点赞
评论
收藏
分享
2024-05-27 21:06
南阳师范学院
题解 | #返回价格在 3到 6之间的产品的名称和价格#
select prod_name,prod_price from Products where prod_price between 3 and 6 order by prod_price;
0
点赞
评论
收藏
分享
2024-05-27 21:05
南阳师范学院
题解 | #检索并列出已订购产品的清单#
select order_num,prod_id,quantityfrom OrderItems where quantity>=100 and prod_id in('BR01','BR02','BR03');
0
点赞
评论
收藏
分享
2024-05-27 21:02
南阳师范学院
题解 | #检索供应商名称#
select vend_namefrom Vendorswhere vend_country='USA' and vend_state='CA';
0
点赞
评论
收藏
分享
2024-05-27 20:59
南阳师范学院
题解 | #返回更多的产品#
select distinct order_numfrom OrderItemswhere quantity>=100;
0
点赞
评论
收藏
分享
1
2
3
4
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客企业服务