1
Well, I think it’s gonna get a little messy maybe, but I need to do this: In an example table I am inserting several names in the name column, in which many of these names are equal, I would like to join all the same names in one query, and those that are different in another. For example:
nome sobrenome
joão Silva
joão Pereira
joão Santos
Luca João
Luca Jose
In this case query 1 would result in: João Silva, João Pereira, João Santos and query 2 would be just Luca João and Luca Jose. I’m trying to do this with PHP, a SELECT WHERE john would solve the problem in this case, but this would have to be done automatically if he had other names he did the same thing.
Put the code you have on.
– Jonathan de Toni
I don’t have any code at the moment, that’s just an idea. I am seeing the possibilities to try to organize this in a viable way when creating DB, in Sso I would just like to receive an example if what I am trying to do is possible...
– Wel