Sweetz1
Create a table holding all possible stack positions. Use a LEFT JOIN along with a sub-query to get all stack positions of a pallet, whether the row exists or not.
stack_pos | serial |
---|---|
1 | 211 |
2 | 222 |
3 | 233 |
4 | 0 |
5 | 0 |
6 | 0 |
7 | 0 |
8 | 0 |
(8 rows affected)
(8 rows affected)