SELECT ename, salary, salary+300 as 인상된급여
FROM employee;
SELECT ename, salary, (salary*12)+100 as 연간총수입
FROM employee
ORDER BY 연간총수입 DESC;
SELECT ename, salary
FROM employee
WHERE salary >= 2000
ORDER BY salary DESC;
SELECT ename, dno
FROM employee
WHERE eno = '7788';
SELECT ename, salary
FROM employee
WHERE salary NOT between 2000 AND 3000;
SELECT ename, job, hiredate
FROM employee
WHERE hiredate between '81/02/20' AND '81/05/01';
SELECT ename, dno
FROM employee
WHERE dno in(20,30)
ORDER BY ename DESC;
SELECT ename, salary, dno
FROM employee
WHERE (salary between 2000 and 3000) AND dno in(20,30)
ORDER BY ename ASC;
SELECT ename, hiredate
FROM employee
WHERE hiredate between '81/01/01' AND '81/12/31';
SELECT ename, job
FROM employee
WHERE manager IS null;
SELECT ename, salary, commission
FROM employee
WHERE NOT commission IS null
ORDER BY salary DESC, commission DESC;
SELECT *
FROM employee
WHERE ename LIKE '__R%';
SELECT *
FROM employee
WHERE ename LIKE '%A%' AND ename LIKE '%E%';
SELECT ename, job, salary
FROM employee
WHERE job IN('CLERK', 'SALESMAN') AND salary NOT IN(1600,950,1300);
SELECT ename, salary, commission
FROM employee
WHERE commission >= 500;