Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Complicated SQL
Message
From
12/08/1998 16:17:48
 
 
To
12/08/1998 16:05:49
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00126184
Message ID:
00126241
Views:
24
>select 1 as dummy, * from tmpbal into cursor tmp ;
>union all select -1 as dummy, * from pc ;
>union all select 1 as dummy, * from pay
>
>select client_num,client_src,SUM(dummy*amount) as balance ;
>from tmp ;
>group by 1,2

Ok, I wasn't reading it right... That group by takes care of things...

Thanks,

-Michelle
Previous
Reply
Map
View

Click here to load this message in the networking platform