首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
在刷题的她很机智
获赞
1
粉丝
0
关注
0
看过 TA
5
海南大学
2024
数据分析师
IP属地:上海
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑在刷题的她很机智吗?
发布(46)
评论
刷题
收藏
在刷题的她很机智
关注TA,不错过内容更新
关注
2023-09-21 11:16
海南大学 数据分析师
题解 | #分群并计算群体人数#
select case when age<20 then '20以下' when age between 20 and 50 then '20-50' when age>50 then '50以上' else '未填写' end age_group ,count(customer_id) user_count from customers_info group by age_group
0
点赞
评论
收藏
分享
2023-09-21 11:10
海南大学 数据分析师
题解 |
select * from customers_info order by case when city is not null then city else country end
0
点赞
评论
收藏
分享
2023-09-21 11:06
海南大学 数据分析师
题解 | #判断其是否有过购买记录#
select customer_id ,case when latest_place_order_date is not null then '1' when latest_place_order_date is null then '0' end if_placed_order from customers_info
0
点赞
评论
收藏
分享
2023-09-08 15:34
海南大学 数据分析师
题解 | #纠错4#
select cust_name,cust_contact,cust_email from Customers where cust_state='MI' union select cust_name,cust_contact,cust_email from Customers where cust_state='IL' order by cust_name
0
点赞
评论
收藏
分享
2023-09-08 15:29
海南大学 数据分析师
题解
select prod_name from Products union select cust_name from Customers order by prod_name
0
点赞
评论
收藏
分享
2023-09-08 13:30
海南大学 数据分析师
题解 | #确定最佳顾客的另一种方式(二)#
# select c.cust_name,sum(oi.item_price*oi.quantity) as total_price # from Customers c,OrderItems oi,Orders o # where c.cust_id=o.cust_id and oi.order_num=o.order_num # group by c.cust_name # having total_price>=1000 # order by total_price select c.cust_name, sum(oi.item_price*oi.quantity) as t...
0
点赞
评论
收藏
分享
2023-09-07 10:49
海南大学 数据分析师
题解 | #返回顾客名称和相关订单号以及每个订单的总价#
select cust_name,Orders.order_num,quantity*item_price as OrderTotal from Orders left join Customers on Orders.cust_id=Customers.cust_id left join OrderItems on Orders.order_num=OrderItems.order_num order by cust_name,Orders.order_num
0
点赞
评论
收藏
分享
2023-09-07 10:42
海南大学 数据分析师
题解 | #返回顾客名称和相关订单号#
# select cust_name,order_num # from Customers,Orders # where Customers.cust_id=Orders.cust_id # order by cust_name select cust_name,order_num from Customers inner join Orders on Customers.cust_id=Orders.cust_id order by cust_name
0
点赞
评论
收藏
分享
2023-09-07 10:31
海南大学 数据分析师
题解 | #返回每个顾客不同订单的总金额#
select cust_id,sum(item_price*quantity) as total_ordered from Orders,OrderItems where Orders.order_num=OrderItems.order_num group by cust_id order by total_ordered desc
0
点赞
评论
收藏
分享
2023-09-06 13:49
海南大学 数据分析师
题解 | #顾客登录名#
select cust_id,cust_name, upper(concat(substr(cust_name,1,2),substr(cust_city,1,3)) )as user_login from Customers
0
点赞
评论
收藏
分享
2023-09-06 13:26
海南大学 数据分析师
题解 | #检索产品名称和描述(二)#
select prod_name,prod_desc from Products where prod_desc not like "%toy%" order by prod_name
0
点赞
评论
收藏
分享
2023-09-06 12:58
海南大学 数据分析师
题解 | #检索产品名称和描述(一)#
select prod_name,prod_desc from Products where prod_desc like '%toy%'
0
点赞
评论
收藏
分享
2023-09-06 12:52
海南大学 数据分析师
题解 | #检索并列出已订购产品的清单#
select order_num,prod_id,quantity from OrderItems where prod_id="BR01"OR prod_id="BR02" OR prod_id="BR03" having quantity>=100
0
点赞
评论
收藏
分享
2023-09-06 12:40
海南大学 数据分析师
题解 | #检索并列出已订购产品的清单#
select order_num,prod_id,quantity from OrderItems where prod_id="BR01"OR prod_id="BR02" OR prod_id="BR03" having quantity>=100
0
点赞
评论
收藏
分享
2023-09-06 10:57
海南大学 数据分析师
题解 | #检索并列出已订购产品的清单#
select DISTINCT prod_id from OrderItems
0
点赞
评论
收藏
分享
1
2
3
4
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客企业服务