Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Group by clause missing or invalid error message
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Group by clause missing or invalid error message
Miscellaneous
Thread ID:
00825521
Message ID:
00825521
Views:
66
Hi All,

The select statement below was working fine until I recomplied my application with vfp8.

After the upgrade the "Group by clause" error message appears.

I've seen the messages/warnings about the group by clause but am not sure why this causes the error since no 'group by' is stated.

I added the 'set enginebehavior 70' and the error goes away.

How would you re-write this so it would work without the 'set enginebehavior 70 ' ?
select ;
	rps, ;
	sum(share) as shares, ;
	sum(cmp) as comps, ;
	sum(iif(cmp>0,iif(sale_pool="Y",cmp,000.00),000.00)) as salepool ;
	from ;
	SYN_MEM ;
	where ;
	stallion = “ARTURO” ;
	and ;
	inact = " " ;
	into cursor sys(2015)
Thanks,

Jim Harvey
Next
Reply
Map
View

Click here to load this message in the networking platform