By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Customer | SiteId | pos | Week | TotalInventory | TotalAmount |
---|---|---|---|---|---|
customer A | 00A1 | posA1 | 1 | 67 | 50 |
customer A | 00A2 | posA2 | 1 | 75 | 45 |
customer A | 00A3 | posA3 | 1 | 98 | 88 |
customer B | 00B1 | posB1 | 3 | 67 | 50 |
customer C | 00C1 | posC1 | 2 | 67 | 50 |
customer C | 00C2 | posC2 | 2 | 75 | 45 |