Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select with additional conditions
Message
 
 
To
14/11/2007 09:37:54
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01268865
Message ID:
01268900
Views:
12
>Thanks a lot, Tore & Naomi,
>
>Actually I do this to avoid grouping by numerically associated field names like 1,2,3 etc. I have got errors before on this count, but none, right now.What could be the reason, for this?
>
>Regards,
>
>Steve


I thought you can not include sub-selects using SET ENGINEBEHAVIOR 70, since it's VFP9 feature, e.g. this type of select statement

select fields left join (select ... ) as additionalSelect is new in 9, if I recall correctly.

For count to work correctly you must include all non-aggregate fields into the GroupBy clause. You may reference fields either by number or by name.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform