メインコンテンツへスキップ

SPLIT BY

Anatomy of a DPQL queryで
作成者一覧
公開日: 2017年3月16日|最終更新日: 2022年11月3日

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.

参考になった役に立たない

1 人中 1 人がこのページは参考になったと答えました

次のページORDER BY
前のページWHERE

コメントを投稿するには、ログインまたは登録が必要です。