Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8689

Re: group_concat on multiple tables

$
0
0

hi Mark,

 

is there a particular reason why you want to use Group_Concat other than to preformat an employee list & role list in vertical format?

 

the reason why I ask is that you should be able to create this type of formatting in cr by just bringing in your 4 tables using the links you described at the top (i.e. without the subqueries), group on ticket_id, and then put in a cross-tab on the ticket id group header with roles & employee names (use a formula to concatenate first & last name) as the rows.

 

from a quick glance at the sql it may be that it is only associating a role with a ticket id and not necessarily with an employee id...i.e. the employee name group concat is done at the ticket id level and the role group concat is done at the ticket id level as they are in subselects of a main query that doesn't include the employee info...i'm guessing that there may be more than one employee id per ticket correct?

 

-jamie


Viewing all articles
Browse latest Browse all 8689

Trending Articles