ITNBR is obviously an item number and AVL01 is the beggining of each week and AVL02 is the begginning of next week and so on. The values 235 ,1 , 934 are inventory values. These are how much the company has that week.
The second table is WKS or Weeks. This table contains these values
These dates correspond to the inventory values. For example DAT01 is 1070620 (which is 06/20/2007). On this date the inventory value is 235 under AVL01.
Basically what I want to do is use the WKS table as Column Headings and use the ACL as data like this
instead of posting data, post SQL Scripts to create temp tables and enter data in those table so that its easier for others to test and help u in better way