首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
kl0g1c
获赞
4
粉丝
2
关注
3
看过 TA
19
男
中北大学
2024
Java
IP属地:陕西
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑kl0g1c吗?
发布(34)
评论
刷题
收藏
kl0g1c
关注TA,不错过内容更新
关注
2023-03-13 19:31
中北大学 Java
题解 | #计算总和#
select order_num, sum(quantity * item_price) as total_price from OrderItems group by order_num having total_price >= 1000 order by order_num where和having的区别 1、having是查询返回结果之后,对结果进行过滤的 2、where是查询返回结果之前进行过滤的 3、在SQL中增加 HAVING 子句原因是,where关键字无法与聚合函数一起使用,having子句常跟group by一同使用,过滤分组后的数据
0
点赞
评论
收藏
分享
2023-03-13 16:10
中北大学 Java
题解 | #每个供应商成本最低的产品#
select distinct vend_id, min(prod_price) as cheapest_item from Products group by vend_id order by cheapest_item
0
点赞
评论
收藏
分享
2023-03-13 15:45
中北大学 Java
题解 | #返回每个订单号各有多少行数#
select order_num, count(order_num) as order_lines from OrderItems group by order_num order by order_lines;
0
点赞
评论
收藏
分享
2023-03-13 10:48
中北大学 Java
题解 | #确定 Products 表中价格不超过 10
select max(prod_price) as max_price from Products where prod_price <= 10
0
点赞
评论
收藏
分享
2023-03-13 10:41
中北大学 Java
题解 | #确定已售出产品项 BR01 的总数#
select sum(quantity) as items_ordered from OrderItems where prod_id='BR01'
0
点赞
评论
收藏
分享
2023-03-12 15:58
中北大学 Java
题解 | SQL必知必会 SQL73
select prod_name, prod_price from Products where prod_price>=3 and prod_price<=6 order by prod_price asc
0
点赞
评论
收藏
分享
2023-03-12 15:52
中北大学 Java
题解 | #检索并列出已订购产品的清单#
SELECT OrderItems.order_num, OrderItems.prod_id, OrderItems.quantity FROM OrderItems WHERE prod_id IN ('BR01','BR02','BR03') AND quantity>100 ORDER BY order_num asc
0
点赞
评论
收藏
分享
2023-03-12 15:42
中北大学 Java
题解 | #检索供应商名称#
SELECT vend_name FROM Vendors WHERE vend_country='USA' AND vend_state='CA'
0
点赞
评论
收藏
分享
2023-03-12 15:33
中北大学 Java
题解 | #返回更多的产品#
SELECT distinct order_num FROM OrderItems WHERE quantity>=100
0
点赞
评论
收藏
分享
2023-03-12 13:37
中北大学 Java
题解 | #返回产品并且按照价格排序#
SELECT prod_name, prod_price FROM Products WHERE prod_price >= 3 AND prod_price <= 6
0
点赞
评论
收藏
分享
2023-03-12 13:34
中北大学 Java
题解 | #返回更高价格的产品#
SELECT prod_id, prod_name FROM Products WHERE prod_price>=9
0
点赞
评论
收藏
分享
2023-03-12 13:29
中北大学 Java
题解 | #返回固定价格的产品#
SELECT prod_id, prod_name FROM Products WHERE prod_price=9.49
0
点赞
评论
收藏
分享
2023-03-12 12:51
中北大学 Java
题解 | #检查SQL语句#
SELECT vend_name FROM Vendors ORDER BY vend_name DESC
0
点赞
评论
收藏
分享
2023-03-12 12:46
中北大学 Java
题解 | #按照数量和价格排序#
SELECT OrderItems.quantity, OrderItems.item_price FROM OrderItems order by quantity desc, item_price desc;
0
点赞
评论
收藏
分享
2023-03-12 00:12
中北大学 Java
题解 | #对顾客ID和日期排序#
select Orders.cust_id, Orders.order_num from Orders order by cust_id asc, order_date desc
0
点赞
评论
收藏
分享
1
2
3
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务