Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way to do this with Grouping?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Is there a way to do this with Grouping?
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00954810
Message ID:
00954810
Views:
48
I have to tables:
*Table1
*fields:

Id   ContrSum ContrDate
--   -------- ---------
1    100.00   2004/10/10
2    200.00   2004/10/11

...

*Table2
*fields:

Id   PayedSum PayedDate
--   -------- ---------
1     50.00   2004/10/10
1     20.00   2004/10/11
1     10.00   2004/10/12
1     20.00   2004/10/13
2    200.00   2004/10/11
I want the following table
Id   ContrSum  ContrDate PayedSum PayedDate
--   -------- ---------- -------- ---------
1      100.00 2004/10/10    50.00 2004/10/10
1        0.00               20.00 2004/10/11
1        0.00               10.00 2004/10/12
1        0.00               20.00 2004/10/13
2       200.00 2004/10/11  200.00 2004/10/11
Is that possible. The first table is master table & I right join table.


TIA
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Next
Reply
Map
View

Click here to load this message in the networking platform