Ver Mensaje Individual
  #18 (permalink)  
Antiguo 01/07/2010, 14:10
Avatar de -rommel_
-rommel_
 
Fecha de Ingreso: junio-2008
Ubicación: Lima
Mensajes: 360
Antigüedad: 15 años, 11 meses
Puntos: 1
Respuesta: Ayuda consulta SQL

entonces de tu ejemplo...

SELECT g.G_Name, g.G_Master, g.G_Score

FROM Character AS c

JOIN MEMB_STAT AS m ON (c.accountid=m.memb___id)

JOIN Guild AS g ON (g.G_Name=c.Name)

WHERE ServerName='FAST'


Al momento de hacer el join de Character a MENB_STAT (accountid, memb___id)
solo te cogera
6 registros
AccountId ServerName memb___id Name
123456 Fast 123456 Imperial
123456 Fast 123456 BK
123456 Fast 123456 MG
123456 Fast 123456 DL
123456 Fast 123456 Sum
Admin Fast Admin Admin

al mmomento de hacer join con GUILD (G_Name y Name)
de los 6 valores:
Imperial
BK
MG
DL
Sum
Admin
ninguno se encuentra en Guild... estoy en lo cierto??? alguien puede decirme si estoy bien???
Guild tiene valores como: asdasd y Pendulum y ninguno esta en "Name" de Character