提交 c7952fd0 编写于 作者: L luxin

exercise bug fixed

上级 4ced3f4d
......@@ -24,7 +24,7 @@ create table employee(
## 答案
```sql
select id, name, dept
select id, name, dept
from employee as o
where not exists(select * from employee as i where o.dept = i.dept and post='assistant');
```
......@@ -40,21 +40,13 @@ where exists(select * from employee as i where o.dept = i.dept and post='assista
```
### B
```sql
select id, name, dept
from employee as o
where not exists(select * from employee as i where o.dept = i.dept and post='assistant');
```
### C
```sql
select id, name, dept
from employee as o
where 'assistant' != exists(select post from employee as i);
```
### D
### C
```sql
select id, name, dept
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册