Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88054

How to get rows having sum equal to given in SQL

$
0
0
**Table A :**                 **Table B:**
ITEMCODE Total QTY        ITEMCODE Qty
A        100              A        25
B        50               A        75
C        75               B        10
D        85               B        20
                          B        30
                          D        80
                          D        5

Need to result view :

A   100  = A 25
           A 75

How to get this result with SQL function with these two tables


Viewing all articles
Browse latest Browse all 88054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>