冷凡社长
冷凡社长
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
冷凡社长的博客
TA的专栏
0篇文章
0人订阅
SQL题解
0篇文章
0人学习
全部文章
(共133篇)
题解 | #返回产品并且按照价格排序#
select prod_name,prod_price from Products where prod_price >= 3 and prod_price<=6 -- between select prod_name,prod_price from Products where pro...
Mysql
2022-08-12
2
320
题解 | #返回更高价格的产品#
select prod_id,prod_name from Products where prod_price >= 9 知识点:条件筛选 之 >=,<=,>,<,= 比较符
Mysql
2022-08-12
3
409
题解 | #返回固定价格的产品#
select prod_id,prod_name from Products where prod_price = 9.49 知识点:where 条件筛选
Mysql
2022-08-12
1
199
题解 | #返回固定价格的产品#
select prod_id,prod_name from Products where prod_price = 9.49 知识点:where 条件筛选
Mysql
2022-08-12
2
263
题解 | #检查SQL语句#
SELECT vend_name FROM Vendors ORDER by vend_name DESC; 这种方式蛮有趣主要知识点1、逗号作用是用来隔开列与列之间的2、order by是有by的,需要撰写完整,且位置正确
Mysql
2022-08-12
12
403
题解 | #按照数量和价格排序#
select quantity,item_price from OrderItems order by quantity desc,item_price desc 主要知识点:按多列排序,每个列可以单独指定排序方式 [[排序]]
Mysql
2022-08-12
1
263
题解 | #对顾客ID和日期排序#
select cust_id,order_num from Orders order by cust_id,order_date desc 知识点:1、提取展示的列和排序的列是分开的逻辑2、排序是可多列,且每列单独执行排序的顺序,但是前面的列其主要的排列作用 [[排序]]
Mysql
2022-08-12
3
315
题解 | #检索顾客名称并且排序#
select cust_name from Customers order by cust_name desc 知识点1、提取指定列2、按指定方式排序
Mysql
2022-08-12
1
241
题解 | #检索所有列#
select * from Customers -- 或者 select cust_id,cust_name from Customers 知识点:获取表的所有数据
Mysql
2022-08-12
1
210
题解 | #检索并列出已订购产品的清单#
去重常用的有两种方式 -- 去重 select distinct prod_id from OrderItems -- 分组 select prod_id from OrderItems group by prod_id 由于这组题目没有建立智能补充,所以手写表名容易出错,可以直接复制表名粘贴。 ...
Mysql
2022-08-12
0
223
首页
上一页
5
6
7
8
9
10
11
12
13
14
下一页
末页