Good day! There is a table of activities id, type, source_id; It has the type types: Image, Progress, Program, Profile. You need to make a request so that the grouping is only for one type Image, and the rest Progress, Program, Profile are not grouped. Those. there is:
source_id type 1 Image 2 Image 3 Image 4 Program 5 Profile 6 Program 7 Profile
Need to get:
source_id type source_ids 1 Image 1,2,3 4 Program 4 5 Profile 5 6 Program 6 7 Profile 7
Thank!