Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Something out of nothing - the aggregate.
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01128076
Message ID:
01128086
Views:
23
>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform