Hello.
Another headache for me today, plus a documentation that doesn't want to show me what I need to know.
Here is the problem:
I have a table that looks like this:
I would like to select A and B where ID_2 has 1, but I absolutely need to output only one row per ID_2 ( GROUP BY clause ).
output-> |1 |A |B |
Is it possible?
The only solution I've found is to change the data to:
... like I did for ID_2, but I don't like it this way.
Many thanks to the one who will take time to share his point of view on that problem.
Have a nice day.
Another headache for me today, plus a documentation that doesn't want to show me what I need to know.
Here is the problem:
I have a table that looks like this:
Code:
ID_1 | ID_2 | ST_1 | ST_2 |
1 |1 |A | |
2 |1 | |B |
3 |1 |C | |
4 |2 |B | |
output-> |1 |A |B |
Is it possible?
The only solution I've found is to change the data to:
Code:
ID_1 | ID_2 | ST_1 | ST_2 |
1 |1 |A |B |
2 |1 |A |B |
3 |1 |C |C |
4 |2 |B |B |
Many thanks to the one who will take time to share his point of view on that problem.
Have a nice day.