Exemplo Consulta Where
Exemplo Consulta Where
from scott.emp
where sal> 2850;
> < >= <= <>
% - qualquer coisa
_ - qualquer letra
SELECT ename
from scott.emp
WHERE ename LIKE 'S%';
SELECT ename
from scott.emp
WHERE ename LIKE '%N';
SELECT ename
from scott.emp
WHERE ename LIKE '%A%';
SELECT ename
FROM scott.emp
WHERE ename LIKE '__A%';
SELECT ename
FROM scott.emp
WHERE ename LIKE '%E_';
SELECT ename
from scott.emp
WHERE ename not LIKE 'S%';
SELECT empno, ename, sal, job
from scott.emp
WHERE job not IN ('MANAGER','SALESMAN', 'CLERK');