Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combine two tables
Message
 
 
To
04/10/2019 19:01:38
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01671394
Message ID:
01671395
Views:
90
Likes (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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform