Professional Documents
Culture Documents
Select e.empno, e.ename, e.mgr , m.empno, m.ename from emp e, emp m where e.mgr =
m.empno;
TRAILING NULLCOLS will allow null values into the table columns
BELOW is an example
If values are giving using begindata then null values can be passed by giving , without
values like ename, empno, , sal
If values are freom the data file then no need
TRAILING NULLCOLS
(
empno,
ename,
sal,
comm,
deptno
)
BEGINDATA
2222, "IMRAN BAIG", ,22, 20
3222, "IMRAN,BAIG", 3222, 32, 20
4222, "IMRAN&BAIG", 4222, 42, 30
Exists Operator
If the sub-query returns data, then the EXISTS operation will return TRUE and a record
from the parent query will be returned.