Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8620

Re: Update OITW MinStock using DTW

$
0
0

Try this query:


SELECT ItemCode, WhsCode,ROW_NUMBER()OVER (PartitionBY ItemCode OrderBy WhsCode)- 1 FROM OITW

 

This query will give you the LineNum based on the system keeping the order as alphabetical order on the WhsCode.


Viewing all articles
Browse latest Browse all 8620

Trending Articles



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