首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
landf31
获赞
60
粉丝
0
关注
5
看过 TA
67
男
东北大学
2023
硬件开发
IP属地:陕西
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑landf31吗?
发布(57)
评论
刷题
收藏
landf31
关注TA,不错过内容更新
关注
2022-04-05 21:08
东北大学 硬件开发
题解 | #返回购买价格为 10 美元或以上产品的顾客列表#
select prod_name, sum(quantity) as quant_sold from Products , OrderItems where Products.prod_id = OrderItems.prod_id group by prod_name
0
点赞
评论
收藏
分享
2022-04-05 20:43
东北大学 硬件开发
题解 | #返回购买价格为 10 美元或以上产品的顾客列表#
select cust_email from Customers where cust_id in (select cust_id from Orders where order_num in (select order_num from OrderItems where prod_id='BR01'));
0
点赞
评论
收藏
分享
2022-04-05 20:27
东北大学 硬件开发
题解 | #返回购买价格为 10 美元或以上产品的顾客列表#
select cust_id from Orders where order_num in (select order_num from OrderItems where item_price>=10);
0
点赞
评论
收藏
分享
2022-04-05 20:16
东北大学 硬件开发
题解 | #纠错3#
SELECT order_num, COUNT(*) AS items FROM OrderItems GROUP BY order_num HAVING COUNT(*) >= 3 ORDER BY items, order_num;
0
点赞
评论
收藏
分享
2022-04-05 19:42
东北大学 硬件开发
题解 | #每个供应商成本最低的产品#
select vend_id,min(prod_price) as cheapest_item from Products group by vend_id having cheapest_item order by cheapest_item;
0
点赞
评论
收藏
分享
2022-04-05 17:43
东北大学 硬件开发
题解 | #返回每个订单号各有多少行数#
select order_num, count(order_num) as order_lines from OrderItems group by order_num order by order_lines asc; /*group by 去重,count 统计*/
0
点赞
评论
收藏
分享
2022-04-05 17:07
东北大学 硬件开发
题解 | #确定已售出产品项 BR01 的总数#
select sum(quantity) as items_ordered from OrderItems where prod_id='BR01'; select sum(quantity) as items_odered from OrderItems group by prod_id having prod_id='BR01';
0
点赞
评论
收藏
分享
2022-04-04 20:57
东北大学 硬件开发
题解 | #返回 2020 年 1 月的所有订单的订单号和订单日期#
select order_num,order_date from Orders where date_format(order_date,'%Y-%m')='2020-01' order by order_date; /*利用date_format,格式化数据*/ select *from Orders where year(order_date)=2020 and month(order_date)=01 order by order_date; /*利用year,month 函数*/
0
点赞
评论
收藏
分享
2022-04-04 20:46
东北大学 硬件开发
题解 | #顾客登录名#
concat(s1,s2,s3...)字符连接 upper(s)转大写 substr(s,i,length),i为第i个字符,i>=1 select cust_id,cust_name, upper(concat(substr(cust_contact,1,2),substr(cust_city,1,3))) as user_login from Customers;
0
点赞
评论
收藏
分享
2022-04-04 20:12
东北大学 硬件开发
题解 | #别名#
select vend_id,vend_name vname,vend_address vaddress,vend_city vcity from Vendors order by vname;
0
点赞
评论
收藏
分享
2022-04-04 20:07
东北大学 硬件开发
题解 | #检索产品名称和描述(四)#
select prod_name,prod_desc from Products where prod_desc like '%toy%carrots%';
0
点赞
评论
收藏
分享
2022-04-04 20:04
东北大学 硬件开发
题解 | #检索产品名称和描述(三)#
select prod_name,prod_desc from Products where prod_desc like '%toy%' and prod_desc like '%carrots%';
0
点赞
评论
收藏
分享
2022-04-04 19:49
东北大学 硬件开发
题解 | #返回所有价格在 3美元到 6美元之间的产品的名称和价格#
select prod_name,prod_price from Products where prod_price>=3 and prod_price<=6 order by prod_price asc;
0
点赞
评论
收藏
分享
2022-04-04 19:42
东北大学 硬件开发
题解 | #检索并列出已订购产品的清单#
select distinct order_num,prod_id,quantity from OrderItems where (prod_id='BR01'or prod_id='BR02'or prod_id='BR03') and quantity>=100;
0
点赞
评论
收藏
分享
2022-04-04 15:50
东北大学 硬件开发
题解 | #完全数计算#
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc=new Scanner(System.in); while(sc.hasNextInt()){ int n= sc.nextInt(); int count=0; for(int i=2;i<=n;i++){ if(isWanbei(i)){ count++; } } System.out.println(count); } } public static boolean isWanbei(int n){ in...
0
点赞
评论
收藏
分享
1
2
3
4
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客企业服务