Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/02/2012, 15:27
Avatar de Libras
Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: Haciendo subconsulta

SELECT shop_id, last_mon,
case isnull(t1.shop_id,0) then 'false' else 'true' end as boleano

FROM chr_statistics as t1
left join (SELECT shop_id FROM chr_shops WHERE reseller_id = 1) as t2 on (t1.shop_id=t2.shop_id)


Algo asi :)

Saludos!
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me