On 10/11/06, Hensa <hensa22(at)yahoo(dot)es> wrote:
> Intenta con esto
>
> SELECT D.cod, D.producto, case when U.cantidadUno is null then 0 else U.cantidadUno end as Cantidad
> FROM tablaDos As D LEFT JOIN tablaUno As U ON D.cod = U.cod
>
en este caso es lo mismo que usar coalesce
--
Atentamente,
Jaime Casanova
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook