Cuestión : el mySQL ensambla pregunta cómo escribo

Tabular 1

webpage_link_id (internacional), webpage_id (internacional), webpage_RSlink1 (internacional),

50,67,1,2


Table2

webpage_id (internacional), webpage_name, webpage_url
1. 1, level1, level1.asp
2. 2, level2, level2.asp

How yo escriben la pregunta del sql para conseguir el siguiente:


webpage_link_id, webpage_id, webpage_RSLink1, webpage_name, webpage_url, webpage_RSLink2, webpage_name, webpage_url

50,57,1, level1, level1.asp, 2, level2, level2.asp

Thank you.
class= del

Respuesta : el mySQL ensambla pregunta cómo escribo

intento…
SELECCIONAR a.webpage_link_id, a.webpage_id, a.webpage_RSLink1, b.webpage_name, b.webpage_url, a.webpage_RSLink2, c.webpage_name, c.webpage_url
De table1 a
ENSAMBLAR Table2 b EN a.webpage_RSLink1 = b.webpage_id
ENSAMBLAR Table2 c EN a.webpage_RSLink2 = c.webpage_id
Otras soluciones  
 
programming4us programming4us