Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sum and GROUP BY
Message
From
18/10/2005 10:22:04
 
 
To
18/10/2005 09:33:18
Moacyr Zalcman
Independent Consultant
São Paulo, Brazil
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01059755
Message ID:
01059901
Views:
11
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'
Previous
Reply
Map
View

Click here to load this message in the networking platform