首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
想居家的小黄鸭追赶太阳
获赞
0
粉丝
0
关注
4
看过 TA
3
香港理工大学
2024
营销
IP属地:江西
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑想居家的小黄鸭追赶太阳吗?
发布(9)
评论
刷题
收藏
想居家的小黄鸭追赶太阳
关注TA,不错过内容更新
关注
2024-08-20 15:22
香港理工大学 营销
题解 | #返回顾客名称和相关订单号以及每个订单的总价#
select c.cust_name, o.order_num, quantity*item_price as OrderTotal from Customers c join Orders o on c.cust_id=o.cust_id join OrderItems oi on o.order_num=oi.order_num order by c.cust_name asc, o.order_num asc
0
点赞
评论
收藏
分享
2024-08-20 15:14
香港理工大学 营销
题解 | #返回顾客名称和相关订单号#
select cust_name, order_num from Customers c join Orders o where c.cust_id=o.cust_id order by cust_name asc, order_num asc
0
点赞
评论
收藏
分享
2024-07-24 10:26
香港理工大学 营销
题解 | #返回每个顾客不同订单的总金额#
select cust_id, sum(item_price*quantity) as total_ordered from Orders o join OrderItems oi on o.order_num=oi.order_num group by o.cust_id order by total_ordered desc 不太懂为什么那么多人用where字句
0
点赞
评论
收藏
分享
2024-07-16 10:42
香港理工大学 营销
题解 | #返回购买价格为 10 美元或以上产品的顾客列表#
select cust_id from Orders where order_num in (select order_num from OrderItems where item_price>=10)
0
点赞
评论
收藏
分享
2024-07-16 10:28
香港理工大学 营销
题解 | #纠错3#
SELECT order_num, COUNT(*) AS items FROM OrderItems GROUP BY order_num HAVING COUNT(*) >= 3 ORDER BY items, order_num
0
点赞
评论
收藏
分享
2024-07-16 10:12
香港理工大学 营销
题解 | #计算总和#
select order_num, sum(item_price*quantity) as total_price from OrderItems group by order_num having sum(item_price*quantity)>=1000 order by order_num asc
0
点赞
评论
收藏
分享
2024-07-12 14:14
香港理工大学 营销
题解 | #每个供应商成本最低的产品#
select vend_id, prod_price as cheapest_item from Products order by prod_price asc limit 3
0
点赞
评论
收藏
分享
2024-07-12 11:16
香港理工大学 营销
题解 | #返回每个订单号各有多少行数#
select order_num, count(order_num) as order_lines from OrderItems group by order_num order by order_lines asc
0
点赞
评论
收藏
分享
2024-06-25 16:06
香港理工大学 营销
题解 | #顾客登录名#
select cust_id, cust_name, upper(concat(left(cust_contact,2), left(cust_city,3))) as user_login from Customers
0
点赞
评论
收藏
分享
1
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务