Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ridding SQL results of NULL
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00110610
Message ID:
00110891
Vues:
26
>>I'm doing a left outer join on two tables. I'd like the NULL's for the unmatched values (for the right-side table) to show up as blank's and 0's rather than NULL's. What's the easiest way? TIA.
>
>Hello Keith,
>
> Here is something easier than using a UNION.
>
> Use NVL() functions as follows.
>
> SELECT order.custid,NVL(customer.custname,' ')
> FROM ....
>
> See help of NVL() for more details.
>Bye
>Jayesh

It's Ok, but NVL fired for each record will slow down SELECT dramatically. This is why UNION is better.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform