Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select SUM()
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00991651
Message ID:
00991657
Views:
16
It's a change in VFP9 which makes result of the query with SUM() ANSI Standard compliant. You can easily get what you want
SELECT CAST(NVL(SUM(T1),0) AS int) AS t1 FROM T1
>CREATE CURSOR T1(t1 I NOT NULL)
>SELECT SUM(T1) AS t1 FROM T1
>
>This returns a cursor with a single NULL value.
>
>Wouldn't it be better to return a 0? And by better I am thinking less likely to break my existing code.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform