Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select Group By Help
Message
From
15/03/2004 18:30:01
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
To
15/03/2004 18:03:31
N. Lea
Nic Cross Enterprises
Valencia, California, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00886527
Message ID:
00886539
Views:
12
>	select a.id_no, a.name, b.account, b.name, sum(a.inv_total), a.inv_status ;
>	from customer_invoices a, customer_accounts b;
>	where inv_status=lcoverduestatus and a.id_no=gnclientid and a.name=b.account;
>	group by b.name ;
>	into cursor sql_collections readwrite
>
>is there anyway to do this without having to set it to 7.0 behavior? I have tried everything that I could find. Thanks!!
select a.id_no, a.name, b.account, b.name, sum(a.inv_total), a.inv_status ;
	from customer_invoices a, customer_accounts b;
	where inv_status=lcoverduestatus and a.id_no=gnclientid and a.name=b.account;
	group by a.id_no, a.name, b.account, b.name, a.inv_status ;
	into cursor sql_collections readwrite
Everything in the SELECT clause is in the GROUP BY clause except the aggregate function SUM().
Previous
Reply
Map
View

Click here to load this message in the networking platform