提交 4fdd7aec 编写于 作者: L luxin

bug fixed for exercises

上级 2b484d2f
......@@ -34,23 +34,17 @@ select sum(total) from orders where deal and unit_price > 1000;
### A
```sql
select sum(total) from orders where deal and unit_price > 1000;
```
### B
```sql
select sum(total) from orders having deal and unit_price > 1000;
```
### C
### B
```sql
select sum(total) from orders group by deal having unit_price > 1000;
```
### D
### C
```sql
select sum(total) from orders having deal and unit_price > 1000;
......
......@@ -38,17 +38,11 @@ select dept, min(salary) from employee;
### B
```sql
select dept, min(salary) from employee;
select dept, min(salary) from employee order by dept;
```
### C
```sql
select dept, min(salary) from employee;
```
### D
```sql
select dept, min(total) from employee;
```
\ No newline at end of file
......@@ -38,17 +38,11 @@ select dept, avg(salary) from employee;
### B
```sql
select dept, avg(salary) from employee;
select dept, avg(dept) from employee group by dept;
```
### C
```sql
select dept, avg(salary) from employee;
```
### D
```sql
select dept, avg(salary) from employee ;
select dept, avg(salary) from employee group by salary;
```
......@@ -41,7 +41,7 @@ create unique index idx_goods_category on goods(category_id);
### B
```sql
create index idx_goods_category on goods(category_id);
create index idx_goods_category on goods(name);
```
### C
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册