dear all experts.
i need really all experts attention on my request.
i have two size of boxes in my store 10 feet and 20 feet. i want to allocate them by system. how we allocate we have numbered to our store yard.
odd numbers for 10 feet and even numbers for 20 feet. numbering like 1,2,3,4,5,6...... if i put 10 feet box i will use 1,3,5..... and if i will put 20 feet
i will put 2,4,6.... these even numbers covered odd number like if i put 20 feet box on 2 it will cover 1 and 3. if i put on 4 it will cover 3 and 5. now here i want to put a query to check if 1 and 3 are occupied and i select 4 it should tell me 3 is already occupied you can not put on 4 use 6 which will cover 5 and 7.
it is like this.
2 4 6 8 10
<tbody>
</tbody>
i need really all experts attention on my request.
i have two size of boxes in my store 10 feet and 20 feet. i want to allocate them by system. how we allocate we have numbered to our store yard.
odd numbers for 10 feet and even numbers for 20 feet. numbering like 1,2,3,4,5,6...... if i put 10 feet box i will use 1,3,5..... and if i will put 20 feet
i will put 2,4,6.... these even numbers covered odd number like if i put 20 feet box on 2 it will cover 1 and 3. if i put on 4 it will cover 3 and 5. now here i want to put a query to check if 1 and 3 are occupied and i select 4 it should tell me 3 is already occupied you can not put on 4 use 6 which will cover 5 and 7.
it is like this.
2 4 6 8 10
1 | 3 | 5 | 7 | 9 | 11 |
<tbody>
</tbody>