Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Writing a SQL statement.
Message
From
13/10/1998 16:03:29
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00146364
Message ID:
00146393
Views:
26
> SELECT COUNT(table1.field1) as t1;
> FROM dbtables!table1 WHERE table1.field1=somevarible into cursor; finalresults
>
>The variable condition is the same for all 3 tables. If someone can help me, I would appreciate it.
>
>TIA,
>Jim

select file1
count thisfield for thiscondition to variable1
select file2
count thisfield for thiscondition to variable2
select file3
count thisfield for thiscondition to variable3

GrandTotal = variable1 + variable2 + variable3
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform