Master_zx
Master_zx
全部文章
分类
题解(16)
归档
标签
去牛客网
登录
/
注册
Master_zx的博客
全部文章
(共87篇)
题解 | #检索供应商名称#
select vend_name from Vendors where vend_country = 'USA' and vend_state = 'CA' // 输入文本条件时需要注意使用英文单引号...
Mysql
2022-08-31
0
315
题解 | #返回更多的产品#
select distinct order_num from OrderItems // 抓关键词,“不同且不重复”对应唯一单号,使用distinct进行去重 where quantity >= 100 // 设...
Mysql
2022-08-31
0
268
题解 | #返回产品并且按照价格排序#
select prod_name,prod_price from Products where prod_price >= 3 and prod_price <= 6 // 双边条件的时...
Mysql
2022-08-31
0
280
题解 | #返回更高价格的产品#
select prod_id,prod_name from Products where prod_price >= 9 // 与上题相似,本题仅扩大查找范围
Mysql
2022-08-31
1
263
题解 | #返回固定价格的产品#
select prod_id,prod_name from Products // 选择商品id及商品名称 where prod_price = 9.49 // 筛选特定价格,采用where + 条件
Mysql
2022-08-31
0
257
题解 | #检查SQL语句#
select vend_name from Vendors // 这一步无误 order by vend_name desc // 按名称逆序排列,完整语法是order by
Mysql
2022-08-31
0
282
题解 | #按照数量和价格排序#
select quantity,item_price from OrderItems // 选择数量、价格 order by quantity desc,item_price desc // 先按数量降序排列,再...
Mysql
2022-08-31
0
232
题解 | #对顾客ID和日期排序#
select cust_id,order_num from Orders # 搜索顾客id和订单数量 order by cust_id asc,order_date desc ...
Mysql
2022-08-29
0
232
题解 | #检索顾客名称并且排序#
select cust_name from Customers # 查找顾客姓名信息 order by cust_name desc # 按名字降序排列(Z-A)
Mysql
2022-08-29
0
304
题解 | #检索并列出已订购产品的清单#
本题考核的依旧是查找所有不重复的值,同样在对应变量前加上distinct即可。 select distinct prod_id from OrderItems
Mysql
2022-08-29
0
276
首页
上一页
1
2
3
4
5
6
7
8
9
下一页
末页