Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Something out of nothing - the aggregate.
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01128076
Message ID:
01128086
Vues:
28
>Allow me to sum up.
>A Select with an agregate function can potentially return a null record.

Only if SELECT doesn't have GROUP BY but has WHERE clause that results in 0 records matching. It's covered in the help for SET ENGINEBEHAVIOR 90

>To deal with this feature one could
>
>if _Tally<1 or (_Tally=1 and isnull(evaluate(field(1)))
>   * actually nothing was found
>endif
I don't thibk there's a generic way to handle that besides SET ENGINEBEHAVIOR 80
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform