SQL/MX 2.x Query Guide (H06.04+, J06.03+)

SQL/MX Operators
HP NonStop SQL/MX Query Guide540437-005
7-57
ROOT Operator
The example of the ROOT operator is based on:
PREPARE TestQuery15 FROM
SELECT CAST(SUM(l_extendedprice*l_discount) AS
NUMERIC(18,2))
AS revenue FROM lineitem WHERE l_shipdate >= DATE '1994-0101'
AND l_shipdate < DATE '1994-01-01' + INTERVAL '1' YEAR AND
l_discount BETWEEN .06 - 0.01 AND .06 + 0.01
AND l_quantity < 24;
DESCRIPTION
fragment_id ............ 0
parent_frag ............ (none)
fragment_type .......... master
statement_index ........ 0
xn_access_mode ......... read_only
plan_version ........... 2,200
SCHEMA ................. DETCAT.DETSCH
HASH_JOINS ............. ON
NESTED_JOINS ........... ON
select_list ............
cast(cast((sum((cast(DETCAT.DETSCH.LX3.L_EXTENDEDPRI
CE AS BIG NUM(12,2) SIGNED) *
cast(DETCAT.DETSCH.LX3.L_DISCOUNT
input_variables Expression containing list of input variables
(params)
expr(text)
order_by Expression containing list of sort keys expr(text)
must_match When CONTROL QUERY SHAPE is used,
textual description of forced query tree ()
expr(text)
update_col The update column specification of an
updatable cursor declaration
expr(text)
olt_optimization Indicates whether an optimization for short,
simple operations is used. The value used is
returned if this optimization is used.
text
statement_index Statement index of this statement as reported
by the Measure product.
integer
upd_action_on_error Determines the type of statement atomicity
chosen for a query:
XN_ROLLBACK: Transaction is rolled back if
an error occurs.
RETURN: Query stops executing and error is
returned without need for statement rollback.
SAVEPOINT: DAM savepoints are used to roll
back the statement if an error occurs.
PARTIAL_UPD: [NonStop SQL/MP style]
Partial results are updated and an error is
returned.
text