Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select Group By Help
Message
De
15/03/2004 18:30:01
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
15/03/2004 18:03:31
N. Lea
Nic Cross Enterprises
Valencia, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00886527
Message ID:
00886539
Vues:
13
>	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().
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform