Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

help with sql query

$
0
0

hi

i need help in sqlCE query 

i have this table:

MEN
===
Item | NewQty | OldQty
--------------------------
111  |              |   10
222  |              |   20
333  |              |   30
444  |              |   40
111  |      80    |   10
333  |      90    |   30

i need to see all but if there is same records i need to see with NewQty, like this:

MEN
===
Item | NewQty | OldQty
--------------------------
222  |              |   20
444  |              |   40
111  |      80    |   10
333  |      90    |   30

thanks


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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