--1:查找comm为空的所有信息 ;
select * from emp where comm is null
--不为空:is not null
--2:将空值转换为实际值;
--只要comm非空,就返回 comm的值,否则返回0
select coalesce ( comm,0) from emp
--3:按模式搜索(like,%)
--在10号部门和20号部门,返回名字中带有一‘I’或者职位 (job title)中带有‘ER’的员工
select ename,job from emp where deptno in (10,20) anf (ename like '%I%' or job like '%ER')