Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can _tally be used when using SUM or COUNT?
Message
From
22/08/2006 15:06:57
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01147656
Message ID:
01147674
Views:
19
Thanks Sergey,

see my reply to Tore

>>
>>I've never heard of this before and have been relying on this for many years now. I have just done some testing and _TALLY appears to always return 0 if no records were selected, even if selecting into a cursor.
>>
>>Can you give me a scenario where _tally will get set to 1 when no records are selected?
>
>Run your select w/o GROUP BY and with WHERE condition that filters out all records..
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform