MySQL Forums
Forum List  »  Spanish

Consulta Multitabla
Posted by: Jorge Luis Borlando
Date: March 29, 2015 02:36PM

Hola a todos, necesito saber como y si es posible resolver la siguiente consulta multitabla

tengo 2 tablas : artículos y códigos EAN
tabla 1: artículos
id| descripción
1| VENTILADORES
2| CALEFACTORES

tabla 2: depósitos
id| EAN
1| 1111117890110
1| 1111117890121
2| 1222222890110
1| 1111117890132

necesito hacer una consulta que salga de la siguiente manera

id|descripción |ean |ean |ean
1|VENTILADORES|1111117890110|1111117890121|1111117890132
2|CALEFACTORES|1222222890110
......

particularmente no encuentro la solución utilizando las opciones GROUP BY, UNION, INTO

estoy intentando usar PROCEDURE pero mi nivel de conocimiento en MySql no me permite llegar a soluciones

Saludos a todos y desde ya, gracias

Options: ReplyQuote


Subject
Views
Written By
Posted
Consulta Multitabla
1966
March 29, 2015 02:36PM
832
March 29, 2015 10:21PM
951
March 30, 2015 09:00AM


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.