MySQL Forums
Forum List  »  Spanish

Ayuda con consulta
Posted by: Pablo Villanueva
Date: June 26, 2019 01:17PM

Tengo la siguiente tabla:

|NOMBRE |NUMERO | PAIS |
-----------------------------
| JUAN | | MEXICO |
| PEDRO | 456 | MEXICO |
| JUAN | 123 | MEXICO |
-----------------------------

Cuando hago un select y group by nombre me regresa:

|NOMBRE |NUMERO| PAIS |
-------------------------
| JUAN | | MEXICO |
| PEDRO | 456 | MEXICO |
-------------------------

¿cómo puedo hacer para que me regrese el "JUAN" con numero "123" ?

Options: ReplyQuote


Subject
Views
Written By
Posted
Ayuda con consulta
518
June 26, 2019 01:17PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.