我的表结构
create table dpt (
dptno number,
dname varchar2(10),
loc varchar2(7)
)
create table emp1 (
empno number,
ename VARCHAR2(10),
desigantion varchar2(10),
mgr number,
deptno number
)
结果1:
111 ram analyst 444 10
222 mohan clerk 333 20
333 hari manager 111 10
444 manju engineer222 30
结果2:
10 inventory hyd
20 finance bglr
30 hr mumbai
现在我将两个表与查询连接起来:
select empno,ename,desigantion,dname,loc from emp1 e,dpt d where d.dptno=e.dptno;
我收到此错误:
e.dptno is invalid.
我该如何解决这个问题?