
29/11/2007, 07:32
|
 | | | Fecha de Ingreso: septiembre-2007
Mensajes: 66
Antigüedad: 17 años, 4 meses Puntos: 1 | |
Re: Saber si hay registros con el mismo codigo en dos tablas prueba estas dos consulgtas
con lineas:
select CABECERAS.IDCABECERA from CABECERAS,LINEAS where CABECERAS.IDCABECERA = LINEAS.IDCABECERA group by CABECERAS.IDCABECERA
sin lineas:
select CABECERAS.IDCABECERA from CABECERAS left join LINEAS on (CABECERAS.IDCABECERA = LINEAS.IDCABECERA) where LINEAS.IDCABECERA is NULL group by CABECERAS.IDCABECERA |