GROUP BY - connect_cdc_sqdata - Latest

Connect CDC (SQData) Apply engine

Product type
Software
Portfolio
Integrate
Product family
Connect
Product
Connect > Connect CDC (SQData)
Version
Latest
ft:locale
en-US
Product name
Connect CDC (SQData)
ft:title
Connect CDC (SQData) Apply engine
Copyright
2026
First publish date
2000
ft:lastEdition
2026-06-16
ft:lastPublication
2026-06-16T09:39:49.930000
L1_Product_Gateway
Integrate
L2_Product_Segment
Data Integration
L3_Product_Brand
Precisely Connect
L4_Investment_Segment
Application Data Integration
L5_Product_Group
ADI - Connect
L6_Product_Name
Connect CDC

The GROUP BY command works in conjunction with the aggregate functions (i.e. SUM, MIN, MAX). This command allows you to group source records based on a field(s) in a source datastore and works in a similar manner as the SQL GROUP BY function, except that this command works against non-relational datastores as well as relational datastores.

Syntax
GROUP BY [<source_datastore>][.<source_description>].<source_field>;
Keyword and Parameter Descriptions
Keyword Description
<source_datastore> Optional. Specifies the name of the source datastore that contains the field that will be grouped.
<source_description>

Optional. Specifies the name of the description/structure that defines that source data record.

<source_field>

Specifies the name of the source field to be grouped.

Example

Group the source data records in datastore SRC_DS by the field DEPT (department). Use the COUNT function to count the number of employees in the department and map the count to the target field EMPL_COUNT.
GROUP BY SRC_DS.DEPT
PROCESS INTO TGT_DS
SELECT
{
   TGT_DS.DEPT_NAME     = CDCIN.DEPT_NAME
   TGT_DS.EMPL_COUNT   = COUNT(CDCIN.EMPL_NUM)
}
FROM CDCIN;

When this script is executed, there will be one (1) target record written for each distinct department in the source datastore. These target record will contain the department name and the count of the number of employees within the department.