SQL/MX 3.x Query Guide (H06.22+, J06.11+)
SQL/MX Operators
HP NonStop SQL/MX Query Guide—640323-001
7-24
HYBRID_HASH_ANTI_SEMI_JOIN Operator
HYBRID_HASH_ANTI_SEMI_JOIN Operator
Join Group
The HYBRID_HASH_ANTI_SEMI_JOIN operator returns rows from the outer table
where no match occurs. Also see HYBRID_HASH_JOIN Operator on page 7-25 and
HYBRID_HASH_SEMI_JOIN Operator on page 7-26.
The HYBRID_HASH_ANTI_SEMI_JOIN has two child nodes. The description field for
this operator contains:
The difference between the join_predicate and hash_join_predicate tokens is that the
former are the nonequijoin predicates, while the latter are equijoin predicates that you
use to help build and probe the hash table.
The following is an example of the HYBRID_HASH_ANTI_SEMI_JOIN operator:
PREPARE TestQuery5 FROM
SELECT * FROM partsupp, part
WHERE p_brand <>'Brand#45'
AND ps_suppkey
NOT IN (SELECT s_suppkey FROM supplier
WHERE
s_comment LIKE '%Better BusinessBureauComplaints%');
DESCRIPTION
fragment_id ............ 0
parent_frag ............ (none)
fragment_type .......... master
Token Followed by ... Data Type
fragment_id A sequential number assigned to the fragment. 0
is always the master executor and 1 is reserved
for the EXPLAIN plan. Numbers 2 to n will be
ESP or DAM fragments.
integer
parent_frag The fragment_id for the parent of the current
fragment. The value is (none) for the master
executor.
integer
fragment_type Master, ESP, or DP2. text
join_type Inner, natural, left, inner semi, or inner anti-semi-
join
text
join_method Name of join method: hash text
join_predicate Expression of the join predicate, specified in the
ON clause. Used for semi and outer joins.
expr(text)
hash_join_predicate Expression of the join predicate. expr(text)
parallel_join_type Type1 or Type2, depending on parallel join
algorithm.
text
selection_predicates Expression of the WHERE clause. expr(text)










