
20/11/2012, 15:57
|
 | Colaborador | | Fecha de Ingreso: agosto-2006 Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 18 años, 6 meses Puntos: 774 | |
Respuesta: realizar una consulta algo asi:
delete from productos where producto.id
in (select p.id from productos as p
left join ventas as v on (p.id=v.id)
where v.fecha < '01/01/2009')
algo asi :)
__________________ What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me |