一、存在以下两张表:
CREATE TABLE emp_bonus1
(
EMPNO NUMBER,
RECEIVED DATE,
TYPE NUMBER,
ETPYE NUMBER
);
INSERT INTO emp_bonus1 VALUES (7369,'14-3月-2005',1,4);
INSERT INTO emp_bonus1 VALUES (7369,'14-3月-2005',1,5);
CREATE TABLE emp_bonus2
(
EMPNO NUMBER,
RECEIVED DATE,
TYPE NUMBER,
ETPYE NUMBER
);
INSERT INTO emp_bonus2 VALUES (7369,'14-3月-2005',1,5);
二、执行以下数据库语句以及对应结果
1.SELECT * FROM emp_bonus1 eb1
WHERE EXISTS(
SELECT 1 FROM emp_bonus2 eb2 WHERE eb1.empno = eb2.empno and eb1.received = eb2.recei