简体   繁体   中英

sql : how to split data from field in pentaho report designer

In database say I have a product named X. This product have a category.
I am trying to split data from field name 'Category'.

for example
Product : X
Category : AA,BB,CC,DD

product and category located in different object.
the result that I want is like this :

in report

how to get the value of the field one by one and store it to each column of that category of the product?

You can do it in the sql query itself ( depends on an rdbms you are using ). Also you can try report scripting (js or groovy).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM