Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combine two tables
Message
 
 
À
04/10/2019 19:01:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
01671394
Message ID:
01671395
Vues:
89
J'aime (1)
Something like
SELECT NVL(qtyin.item, qtyout.item) AS item, NVL(qtyin.qtyin,0) AS qtyin, NVL( qtyout.qtyout,0) AS qtyout
    FROM qtyin    FULL JOIN qtyout ON  qtyin.item = qtyout.item
>What is the best way to combine two tables;
>
>
>qtyin.dbf
>item    qtyin    
>A         10
>B         10
>C         10
>
>qtyout.dbf
>item    qtyout
>A          5
>D          5 
>
>totqty.dbf
>item    qtyin    qtyout
>A          10           5
>B          10           0
>C          10           0
>D           0           5
>
>
>
>Thanks in advance
>
>Jerry
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform