Quantcast
Viewing all articles
Browse latest Browse all 8894

SQL Query : History date table of Item Stock Level

Hello,

 

I would like to write a query that would show the history table stock level of one item code for let's say the past year:

 

e.g.

 

DateItem CodeStock Level
TodayA5
Today - 1A8
Today - 2A76
...............
Today - 365A84

 

I was planning to use the OINM table but I was wondering how to handle the loop for the 365 last days.

 

Anyone could help me ?

 

Thanks in advance,

 

O.


Viewing all articles
Browse latest Browse all 8894

Trending Articles



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