
eliminar registro entre 2 tablas
Publicado por alexis (11 intervenciones) el 21/03/2014 19:54:56
buenas tardes que tal, deseo realizar un delete a los registros de la tabla 1 que coincidan con el amarre a la tabla dos pero no me prermite hacerlo , por favor si me podrian ayudar gracias
delete es.* from tabla1 es, tabla2 im
Where
es.es_referencia = im.style_code
and es.es_depto = im.style_dept_code
and es.es_categoria = im.style_coll_filler
and es.es_talla = im.style_size_code
and es.es_cte = '**uu'
and es.es_depto = '7'
and es.es_categoria = '90'
and es.es_talla = 'kj'
and es.es_referencia <> '34'
and im.style_season_code = '00'
and im.style_season_year = '0000'
delete es.* from tabla1 es, tabla2 im
Where
es.es_referencia = im.style_code
and es.es_depto = im.style_dept_code
and es.es_categoria = im.style_coll_filler
and es.es_talla = im.style_size_code
and es.es_cte = '**uu'
and es.es_depto = '7'
and es.es_categoria = '90'
and es.es_talla = 'kj'
and es.es_referencia <> '34'
and im.style_season_code = '00'
and im.style_season_year = '0000'
Valora esta pregunta


0