Search code examples
sqlsql-serverreporting-servicesgroup-byssrs-2008

Sql select with grouping rows


In mssql-db I have a table with 5 columns. id, 1st_t1, 1st_t2, 2nd_t1, 2nd_t2

it's single "task" with 2 parameters(t1,t2) "grouped" by person type(1st,2nd)

Is it possible to select info like this on picture in Reporting Service?:

image

Or the only way is divide this table on two tables for each person type?


Solution

  • In your report, your detail must have two rows.

    On the first you will drag and drop the data of the 1st person and on the second row for the second like in the image below

    enter image description here