|
- create table tunique ( a number unique ) ;
- insert into tunique values (1) ;
- insert into tunique values ( null) ;
- select * from tunique;
- insert into tunique values ( null) ;
- select * from employees
- where employee_id in ( select manager_id
- from employees) ;
- select * from employees
- where employee_id not in ( select manager_id
- from employees where manager_id is not null) ;
-
-
- SELECT department_name || q'# Department's Manager Id: #'
- || manager_id
- AS "Department and Manager"
- FROM departments;
-
-
- SELECT last_name, job_id, department_id, hire_date
- FROM employees
- ORDER BY 3;
-
复制代码
上完1Z0-051第0章 (52-24)
上完1Z0-051第1章 (52-25)
上完1Z0-051第2章 (52-26)
|
|