EasyManua.ls Logo

Omron CX-SUPERVISOR - V2.0 - Grouped Parent Related to Grouped Child Example

Omron CX-SUPERVISOR - V2.0
370 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CHAPTER 12 – Databases OMRON
Page 216 Release 2.0
Note: The missing BY clause in the outer summary. This defines the Grand Total
because the parent rowset contains a single record with the grand total and a pointer
to the child recordset.
Grouped Parent Related to Grouped Child example:
SHAPE
(SHAPE {select * from customers}
APPEND ((SHAPE {select orders.*, year(orderdate) as OrderYear,
month(orderdate) as OrderMonth from orders} AS rsOrders
COMPUTE rsOrders
BY customerid, OrderYear, OrderMonth)
RELATE customerid TO customerid) AS rsOrdByMonth )
AS rsCustomers
COMPUTE rsCustomers
BY region

Table of Contents

Related product manuals