Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting rid of nulls on an outer join
Message
De
08/08/2013 21:14:54
 
 
À
08/08/2013 19:39:13
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 5
OS:
Windows 2000 SP4
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01580135
Message ID:
01580147
Vues:
41
Thanks, I didn't realize I could use nvl in SUM(nvl(foo, 0)).

>look at the nvl() function
>>Hi All:
>>
>>I'm JOINing two tables on a LEFT OUTER JOIN. So, some of the fields on the right have nulls if the join fails.
>>
>>I then get an error when I try to perform a SELECT SUM(foo) foo2. The error is 'Error 1581 Field foo2 does not accept null values'.
>>
>>Note that I am working on VFP5! It's an SBT app from 100 years ago.
>>
>>Any ideas?
>>
>>Thanks,
>>
>>Yossi
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform