Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sum and GROUP BY
Message
De
18/10/2005 10:22:04
 
 
À
18/10/2005 09:33:18
Moacyr Zalcman
Independent Consultant
São Paulo, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01059755
Message ID:
01059901
Vues:
12
This message has been marked as the solution to the initial question of the thread.
>Thanks for your answer. I tried but it didn't work for me.
>
>Is this sintaxe valid for Visual FoxPro8?
>Is there an equivalent one to SQL SERVER
>
>Best Regards

This must work on SQL Server
select ID,a,b,c,d
, (SELECT sum(value) FROM  Indet WHERE INID = In.ID) as total
   from In
   where  ID='54321'
this in VFP9:
select ID,a,b,c,d ;
, (SELECT sum(value) FROM  Indet WHERE INID = In.ID) as total ;
   from In ;
   where  ID='54321'
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform