欢迎来到易学考试网 易学考试官网
全部科目 > 大学试题 > 计算机科学 > Oracle

单项选择题

某公司的员工费用应用程序有两表,一个是EMP,包含所有员工数据,一个是EXPENSE,包含公司每个员工提交的费用票据。下列哪个查询取得提交的费用总和超过其工资值的员工ID与姓名?()

    A.select e.empno,e.ename from emp e where e.sal <(select sum(x.vouch_amt)from expense x)and x.empno =e.empno;
    B.select e.empno,e.ename from emp e where e.sal <(select x.vouch_amt from expense x where x.empno =e.empno);
    C.select e.empno,e.ename from emp e where e.sal <(select sum(x.vouch_amt)from expense x where x.empno =e.empno);
    D.select e.empno,e.ename from emp e where exists (select sum(x.vouch_amt)from expense x where x.empno =e.empno);

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题