从emp e中选择e.empno,e.ename,e.sal,d.deptno,d.dname,l.loc_id,l.loc_name,a.add1,a.add2,a.pin,地址a, location l,dept d on inner join emp,deptno and on inner join emp,address and inner join dept,location a aadd2 = rp and l.loc_name = kolkata;
答案 0 :(得分:2)
select e.empno, e.ename, e.sal, d.deptno, d.dname, l.loc_id, l.loc_name, a.add1, a.add2, a.pin
from emp e
inner join dept d on d.deptno=e.deptno
inner joint location l on l.loc_id=d.loc_id
inner join address a on a.adress_id=e.address_id
where a.add2 = 'rp' and l.loc_name='kolkata';
你的意思是这样吗?