Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Fails in VFP v9.0
Message
 
 
To
21/06/2006 13:44:47
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01130572
Message ID:
01130697
Views:
19
Tamar,

So perhaps we should ask for a RANDOM() function in the next release so that the prior behavior can be formalized. *bg*

>The problem is that when a field is neither aggregated nor grouped, VFP has to choose a value at random to put in the result.
>
>To solve your problem, list only the fields you need (instead of *). Then, for fields other than Name, either add them to the GROUP BY clause or, if the value is the same for each record, wrap them with MIN() or MAX().
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform