Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/12/2010, 07:36
yop289
 
Fecha de Ingreso: diciembre-2010
Mensajes: 61
Antigüedad: 14 años, 3 meses
Puntos: 4
Respuesta: Hacer un DISTINC entre dos tablas con un INNER JOIN

Has intentado

SELECT DISTINCT ta.idcuenta FROM cortes as t1 INNER JOIN abonos as t2 ON(t1.id_abono = t2.id) WHERE t1.`id_corte` = 2 && t1.tabla_pertenece = '0' && t1.tipo_operacion = '0' group by ta.idcuenta