Skip to main content

SPLIT BY

in Anatomy of a DPQL query
Authors list
Zverejnené: 16. 3. 2017|Posledná Aktualizácia: 3. 11. 2022

The optional SPLIT BY clause enables you split the results into separate tables/graphs by providing split field values.

For example, if you wanted to display each agent’s matching tickets for a query in a separate table, you’d use:

SPLIT BY tickets.agent
copy

and the result would look like this:

../_images/split-by-agent-example.png

with a separate table for each agent.

You can use multiple split fields by providing a comma-separated list of expressions. This will result in separate tables for each combination of of the fields you provide. For example:

SPLIT BY tickets.agent, tickets.department
copy

produces output like this:

../_images/split-by-multiple-fields.png

with separate tables for Agent A/Department A, Agent A/Department B, Agent B/Department A, etc.

PomocnéNeužitočná

1 z 1 ľudí považuje túto stránku za užitočnú

next pageORDER BY
previous pageWHERE

Please log in or register to submit a comment.