Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a way to do this with Grouping?
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Is there a way to do this with Grouping?
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00954810
Message ID:
00954810
Vues:
49
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform