MySQL Forums
Forum List  »  Spanish

Consulta entre dos tablas
Posted by: Diego Santos
Date: May 25, 2017 05:08AM

Buenas tardes.

Quería saber si es posible hacer un tipo de consulta que no encuentro por ninguna parte.

Teniendo dos tablas, Tabla1 y Tabla2

Tabla 1

nombre id
------ ---
Primero 1
Primero 2
Primero 3
Primero 6
Segundo 1
Segundo 2
Segundo 4
Tercero 1
Tercero 7
Cuarto 3
Quinto 8



Tabla2

id
---
1
2
3


Como puedo hacer la consulta para que me devuelva solo el nombre de la tabla 1 que tenga TODOS los valores de la tabla2? En este caso solo devería devolverme el nombre Primero.

Muchas gracias.

Options: ReplyQuote


Subject
Views
Written By
Posted
Consulta entre dos tablas
864
May 25, 2017 05:08AM
2820
May 25, 2017 06:03PM


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.