I have the following columns in my table: alias, first, last. I would like to concatenate the strings and then look for different values: that is.
- jimmyWho, jim smith
- BallyHo, Bob, Smith
- JimmytwoShoes, Jim, Smith
- Bobtastic, Bob, Johnson
- JimmytwoShoes, Jim, Smith
- BallyHo, Dave, Jones
I would like to get the following results (note that the number 5 above is a duplicate):
- jimmyWho, jim smith
- BallyHo, Bob, Smith
- JimmytwoShoes, Jim, Smith
- Bobtastic, Bob, Johnson
- BallyHo, Dave, Jones
In other words, I need to concatenate the strings, and then search for the individual values ββonly AFTER I am concatenated ... by doing this b / f, concatenation will not produce the desired results. Is there any way to do this in mysql?
source share