SQL/MX 2.x Reference Manual (H06.04+)

SQL/MX Functions and Expressions
HP NonStop SQL/MX Reference Manual540440-003
9-56
Examples of EXPLAIN
Operators are grouped together for purposes of display within the DISPLAY_EXPLAIN
command. For more information about the use of the result table of the EXPLAIN
function, see the SQL/MX Query Guide.
Examples of EXPLAIN
Use the DISPLAY_EXPLAIN command to construct and display all columns in the
result table of the EXPLAIN function for the specified prepared statement:
PREPARE FINDEMP FROM
SELECT * FROM persnl.employee
WHERE salary > 40000.00 AND jobcode =450;
DISPLAY_EXPLAIN FINDEMP;
SUBSET_DELETE
SUBSET_UPDATE
TRANSPOSE
TUPLE_FLOW
TUPLELIST
UNIQUE_DELETE
UNIQUE_UPDATE
UNPACK
VALUES
DAM subset
DAM subset
Data mining
Join
Tuple
DAM unique
DAM unique
Rowset
Tuple
LEFT_CHILD_
SEQ_NUM
INT Sequence number for the first child operator of the current
node (or operator); null if node has no child operators.
RIGHT_CHILD_
SEQ_NUM
INT Sequence number for the second child operator of the
current node (or operator); null if node does not have a
second child.
TNAME CHAR(60) For operators in scan group, full name of base table,
truncated on the right if too long for column. If correlation
name differs from table name, simple correlation name first
and then table name in parentheses.
CARDINALITY REAL Estimated number of rows that will be returned by the
current node.
OPERATOR_
COST
REAL Estimated cost associated with the current node to execute
the operator.
TOTAL_COST REAL Estimated cost associated with the current node to execute
the operator, including the cost of all subtrees in the
operator tree.
DETAIL_COST VARCHAR
(200)
Tokenized cost vector.
DESCRIPTION VARCHAR
(3000)
Additional information about the operation in the form of a
stream of token pairs.
Column Name Data Type Description