Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/04/2007, 11:03
Avatar de Andres95
Andres95
Colaborador
 
Fecha de Ingreso: diciembre-2004
Mensajes: 1.802
Antigüedad: 20 años, 3 meses
Puntos: 38
Re: Ayuda con Join!!

solo hay que agregar la tabla para hacer el join... mas o menos asi...

Código:
DELETE FROM PopaWrk..Ad_d530010pc_1_tmp_vi 
FROM PopaWrk..Ad_d530010pc_1_tmp_vi d
inner join adgrs_afinidad a
on  d.aff_group= a.cod_grsafi
WHERE a.sino_preemitida = 1 
and a.cod_adm=@head_administ 
and a.cod_ent=@head_entidad 
and a.cod_car=@head_cartera
__________________
La sencillez y naturalidad son el supremo y último fin de la cultura...
--
MCTS : SQL Server 2008, .NET Framework 3.5, ASP.NET Applications.