create table dpt (
deptno 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 * from emp1 inner join dept on emp1.deptno=dept.deptno
结果:
111 ram analyst 444 10 10 inventory hyd
222 mohan clerk 333 20 20 finance bglr
333 hari manager 111 10 10 inventory hyd
是否正确?