找考题网-背景图
单项选择题

有以下表,执行sql查询错误的是()。

A.SELECT *FROM emp WHERE sal>(SELECT sal FROM emp WHERE ename=’关羽’);
B.SELECT *FROM emp WHERE sal>(SELECT sal FROM emp HAVING ename=’关羽’);
C.SELECT e1.ename,e2.ename lead FROM emp e1LEFT JOIN emp e2ON e1.mgr=e2.empno
D.SELECT job,COUNT(*)FROM emp e GROUP BY job HAVING MIN(sal)>15000;

热门试题