Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CSDN 技术社区
skill_tree_mysql
提交
4fdd7aec
S
skill_tree_mysql
项目概览
CSDN 技术社区
/
skill_tree_mysql
通知
21
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
skill_tree_mysql
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
4fdd7aec
编写于
7月 08, 2022
作者:
L
luxin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fixed for exercises
上级
2b484d2f
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
6 addition
and
25 deletion
+6
-25
data/2.MySQL中阶/4.聚合和分组/2. 求和/sum.md
data/2.MySQL中阶/4.聚合和分组/2. 求和/sum.md
+2
-8
data/2.MySQL中阶/4.聚合和分组/3.最小值/min.md
data/2.MySQL中阶/4.聚合和分组/3.最小值/min.md
+1
-8
data/2.MySQL中阶/4.聚合和分组/5. 平均值/avg.md
data/2.MySQL中阶/4.聚合和分组/5. 平均值/avg.md
+2
-8
data/2.MySQL中阶/7. 索引/2.创建索引/create_index.md
data/2.MySQL中阶/7. 索引/2.创建索引/create_index.md
+1
-1
未找到文件。
data/2.MySQL中阶/4.聚合和分组/2. 求和/sum.md
浏览文件 @
4fdd7aec
...
@@ -34,23 +34,17 @@ select sum(total) from orders where deal and unit_price > 1000;
...
@@ -34,23 +34,17 @@ select sum(total) from orders where deal and unit_price > 1000;
### A
### A
```
sql
select
sum
(
total
)
from
orders
where
deal
and
unit_price
>
1000
;
```
### B
```
sql
```
sql
select
sum
(
total
)
from
orders
having
deal
and
unit_price
>
1000
;
select
sum
(
total
)
from
orders
having
deal
and
unit_price
>
1000
;
```
```
###
C
###
B
```
sql
```
sql
select
sum
(
total
)
from
orders
group
by
deal
having
unit_price
>
1000
;
select
sum
(
total
)
from
orders
group
by
deal
having
unit_price
>
1000
;
```
```
###
D
###
C
```
sql
```
sql
select
sum
(
total
)
from
orders
having
deal
and
unit_price
>
1000
;
select
sum
(
total
)
from
orders
having
deal
and
unit_price
>
1000
;
...
...
data/2.MySQL中阶/4.聚合和分组/3.最小值/min.md
浏览文件 @
4fdd7aec
...
@@ -38,17 +38,11 @@ select dept, min(salary) from employee;
...
@@ -38,17 +38,11 @@ select dept, min(salary) from employee;
### B
### B
```
sql
```
sql
select
dept
,
min
(
salary
)
from
employee
;
select
dept
,
min
(
salary
)
from
employee
order
by
dept
;
```
```
### C
### C
```
sql
select
dept
,
min
(
salary
)
from
employee
;
```
### D
```
sql
```
sql
select
dept
,
min
(
total
)
from
employee
;
select
dept
,
min
(
total
)
from
employee
;
```
```
\ No newline at end of file
data/2.MySQL中阶/4.聚合和分组/5. 平均值/avg.md
浏览文件 @
4fdd7aec
...
@@ -38,17 +38,11 @@ select dept, avg(salary) from employee;
...
@@ -38,17 +38,11 @@ select dept, avg(salary) from employee;
### B
### B
```
sql
```
sql
select
dept
,
avg
(
salary
)
from
employee
;
select
dept
,
avg
(
dept
)
from
employee
group
by
dept
;
```
```
### C
### C
```
sql
```
sql
select
dept
,
avg
(
salary
)
from
employee
;
select
dept
,
avg
(
salary
)
from
employee
group
by
salary
;
```
### D
```
sql
select
dept
,
avg
(
salary
)
from
employee
;
```
```
data/2.MySQL中阶/7. 索引/2.创建索引/create_index.md
浏览文件 @
4fdd7aec
...
@@ -41,7 +41,7 @@ create unique index idx_goods_category on goods(category_id);
...
@@ -41,7 +41,7 @@ create unique index idx_goods_category on goods(category_id);
### B
### B
```
sql
```
sql
create
index
idx_goods_category
on
goods
(
category_id
);
create
index
idx_goods_category
on
goods
(
name
);
```
```
### C
### C
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录