Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL vfp 8 vs. vfp 6
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00815861
Message ID:
00816107
Views:
22
>That's kinda of discouraging(and confusing). I am supposed to think my sql select statements possibly returned incorrect data in vfp7?

Lets take a look at your query
Select detail, noun, sum(price), sum(quantity) ;
  from bsyear03 group by detail
There's nothing in the query that tells VFP from which record to take value for 'noun' column. The query is ambiguous. It's not documented but known that VFP will return value for the columns not icluded in GROUP BY clause from the last physical record in the group. It may or may not be what you want or expect. Even more, the result of the query depends on the physical order of data in the table. If you rearange physical order of data in the table the result returned by this query will also changed.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform