Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/02/2014, 05:32
jurena
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 16 años, 1 mes
Puntos: 300
Respuesta: Comparacion entre dos tablas con campos diferentes

Los que aparecen en reg_form_a y no en reg_form_b
Código MySQL:
Ver original
  1. FROM reg_form_a
  2. LEFT JOIN reg_form_b ON reg_form_a.email = reg_form_b.email WHERE reg_form_b.email IS NULL

Los que aparecen en reg_form_b y no en reg_form_a
Código MySQL:
Ver original
  1. FROM reg_form_b
  2. LEFT JOIN reg_form_a ON reg_form_b.email = reg_form_a.email WHERE reg_form_a.email IS NULL