You are on page 1of 10

Product Join

EXPLAIN
SELECT Hours, EmpNo, Description
FROM Charges, Project
WHERE Charges.Proj_Id = ENG-0003
AND Project.Proj_Id = ENG-0003
AND Charges.WkEnd >
Project.DueDate ;

Merge Join
EXPLAIN
SELECT Name, DeptName, Loc
FROM Employee, Department
WHERE Employee.DeptNo =
Department.DeptNo ;

Hash Join
EXPLAIN
SELECT
Employee.EmpNum,Department.D
eptName, Employee.Salary
FROM Employee, Department
WHERE Employee.Location =
Department.Location ;

Nested Join
EXPLAIN
SELECT DeptName, Name, YrsExp
FROM Employee, Department
WHERE Employee.EmpNo =
Department.MgrNo
AND Department.DeptNo = 100;

last use
This term identifies the last
reference to a spool file that
contains intermediate data
that produces a statements
final
result. The file is released
following this step

locally on the AMPs


That portion of spooled
intermediate or result data
for which an AMP is
responsible is stored on the
AMP; it is not
duplicated on or redistributed
to other AMPs that are
processing the same request.

lock
Teradata places an ACCESS,
READ,WRITE, or EXCLUSIVE lock on
the database object that is to be
accessed by a request.

no residual conditions
Rows are selected in their entirety;
there are no specific search
conditions. All applicable
conditions have been
applied to the rows.

of n partitions
of a single partition

The optimizer was able to determine that all


rows in each of n partitions may be
completely deleted. n is greater than one. In
some cases, this allows for faster deletion of
entire partitions.

The optimizer was able to determine that all


rows in a single partition may be completely
deleted. In some cases, this allows for faster
deletion of the entire partition

redistributed by hash code to all


AMPs
single-AMP JOIN step by way of
the unique primary index
single-AMP RETRIEVE by way of
unique index # n
single-AMP RETRIEVE step by
way of the unique primary index

You might also like