![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
01/08/2006, 15:35
|
![Avatar de diegopedro](http://static.forosdelweb.com/customavatars/avatar146045_1.gif) | | | Fecha de Ingreso: agosto-2006 Ubicación: Santiago
Mensajes: 120
Antigüedad: 18 años, 6 meses Puntos: 0 | |
Prueba con esto
OJO VERIFICA LOS INDICES QUE TIENES SON DE MUCHA UTILIDAD AL MOMENTO DE BUSCAR DATOS
------------------------
SELECT cli.con,cli.sucursal
FROM tbclientes_db as cli
,tbclientes_us AS us
WHERE NOT EXISTS (
SELECT 'x'
FROM tbacum_art_cliente_diario
WHERE cli1.cliente=cli.con
AND fecha = '$fechaCal2'
)
and us.tipo = '2'
AND us.cli = cli.con
------------------------ |