Ver Mensaje Individual
  #4 (permalink)  
Antiguo 25/10/2012, 17:08
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: Select a tabla cuyos datos no estan en otra tabla

podrias hacer algo asi

select * from tabla1 as t1
left join tabla2 as t2 on (t1.id=t2.id)
where t2.id is null

asi sacas los que no tienen ninguna factura :)
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me