Correlation names
A correlation name can be defined in the FROM clause of a query and after the name of the target table or view in an UPDATE, MERGE, or DELETE statement.
FROM X.MYTABLE Z
With Z defined as a correlation name for table X.MYTABLE, only Z should be used to qualify a reference to a column of X.MYTABLE in that SELECT statement.
A correlation name is associated with a table, view, nested table expression or table function only within the context in which it is defined. Hence, the same correlation name can be defined for different purposes in different statements. In a nested table expression or table function, a correlation name is required.
As a qualifier, a correlation name can be used to avoid ambiguity or to establish a correlated reference. It can also be used merely as a shorter name for a table or view. In the example, Z might have been used merely to avoid having to enter X.MYTABLE more than once.
FROM EMPLOYEE E, DEPARTMENT
FROM DEPT D (NUM,NAME,MGR,ANUM,LOC)
You
should use D.NUM instead of D.DEPTNO to reference the first column
of the table.If a list of columns is specified, it must consist of as many names as there are columns in the table-reference. Each column must be unique and unqualified.