Teradata - JOIN Index
Teradata - JOIN Index
Teradata - JOIN Index
Syntax
Following is the syntax of a JOIN INDEX.
Example
Consider the following Employee and Salary
tables.
CREATE SET TABLE EMPLOYEE,FALLBACK (
EmployeeNo INTEGER,
FirstName VARCHAR(30) ,
LastName VARCHAR(30) ,
DOB DATE FORMAT 'YYYY-MM-DD',
JoinedDate DATE FORMAT 'YYYY-MM-D
DepartmentNo BYTEINT
)
UNIQUE PRIMARY INDEX ( EmployeeNo );
Example
The following example creates a JOIN INDEX
named Employee_Salary_JI by joining
Employee and Salary tables.
Example
In the following example Employee and
Salary is joined to identify the total salary per
Department.