Mysql - substr, in, left outer join, group by, FOREIGN KEY
SELECT SUBSTR(Ename, 1, 1) FROM EMP order by ename ;SELECT * FROM EMP ;SELECT * FROM EMP where SUBSTR(Ename, 1, 1) = 'A' order by ename; SELECT SUBSTR('HELLO JAVA', 7, 2); SELECT * FROM DEPT; SELECT * FROM EMP, DEPTWHERE JOB IN (SELECT JOB FROM EMP WHERE DEPTNO = 20)AND EMP.DEPTNO = 10AND EMP.DEPTNO = DEPT.DEPTNO; ---- CREATE TABLE 학과 ( 학과번호 INT, 학과명 VARCHAR(20),PRIMARY KEY (학과번호) ); SELECT * FR..