Hi
I have below data .
| Group 5C |
| Group 5B |
| Group 3C |
| Group 4C |
| Group 3E |
| Group 5C(i) |
| Group 4C(i) |
I want to get data like this
Group 5C , Group 5C(i)
Group 5B
Group 3C
Group 4C , Group 4C(i)
Group 3E
Thanks
Hi
I have below data .
| Group 5C |
| Group 5B |
| Group 3C |
| Group 4C |
| Group 3E |
| Group 5C(i) |
| Group 4C(i) |
I want to get data like this
Group 5C , Group 5C(i)
Group 5B
Group 3C
Group 4C , Group 4C(i)
Group 3E
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Tuhin PaulPosted Jun 10, 2023, 11:13 AM
This query will concatenate the group names together based on the specified conditions. The IF statement is used to exclude the "(i)" suffix for group names that already have it. The subquery is used to retrieve the corresponding "(i)" group name, if it exists, and concatenate it with the original group name.