Preskoči in pojdi v glavno vsebino

SPLIT BY

v Anatomy of a DPQL query
Seznam avtorjev
Objavljeno: 16. mar. 2017|Nazadnje Posodobljeno: 3. nov. 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.

UporabnoNeuporabno

1 od skupaj 1 oseb je ocenilo to stran kot uporabno.

naslednja stranORDER BY
Prejšnja stranWHERE

Pred objavo komentarja se moraš prijaviti.