Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sub Total
Message
De
18/12/2006 09:42:25
 
 
À
18/12/2006 09:31:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01178537
Message ID:
01178547
Vues:
21
>Dear Sir,
>
>I want to show it into Grid.
>
>Please help

Sorry, one line was a type. Plase, use the following:

ALTER table testsub ADD COLUMN listorder C(1)
INDEX on name+listorder TAG gridorder
SELECT name,sum(amount) as amount,sum(bill) as bill FROM testsub ;
INTO CURSOR totals GROUP BY 1
INSERT INTO testsub (listorder,name,bill,amount) ;
SELECT 'S' as listorder,name,bill,amount FROM totals
USE in totals
CALCULATE SUM(amount),SUM(bill) TO nAmount,nBill IN testsub
INSERT INTO testsub (listorder,name,bill,amount) ;
values('T','zzz',nBill,nAmount)
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform