Let's assume I have two tables (A and B):
A:
| ID | column1 | B_ID | column2 | ... | column x |
| 1 | xxx | 25 | xxxx...
B:
| ID | B_ID | C | column 1 | ... | column x|
| 2 | 25 | 55 | xxxxxxx
| 3 | 25 | 66 | xxxxxxx (data in all other columns are the same,
only C column differs) and I do inner join on them (using B_ID).
Because in table B there are two matching rows for inner join, I get two rows as a result. This happens even when using DISTINCT because data in column C differs. Is there some way to somehow join differing values of C in new value (like "55,66") or to put C value 66 in another column (like C_1) so I can have only one row as a result?