Forum

Date Slot allocatio...
 
Notifications
Clear all

Date Slot allocation based on slot available and ETA Date

5 Posts
3 Users
0 Reactions
206 Views
(@khankeong-yap)
Posts: 2
New Member
Topic starter
 

Hi All,
I have 2 table. 1 table is my warehouses daily available slot to receive goods. Another table is the goods ETA at port. We already preplanned which goods is to which warehouse. But I need a query to match the time slot table to goods ETA table. whichever ETA reached first will take earliest slot based on warehouse, but some of the earliest slot available is earlier than ETA. Any suggestion? Thanks.

 
Posted : 29/12/2022 1:23 am
Riny van Eekelen
(@riny)
Posts: 1188
Member Moderator
 

See if the attached PQ solution works for you. I didn't make it pretty or very advanced. And it requires quite a bit of merging, duplicating, sorting and filling along the way. Finally append the ETA table with a table that hold available slots based in the rule that he slot times should be on or after ETA.

 
Posted : 29/12/2022 6:26 am
Alan Sidman
(@alansidman)
Posts: 222
Member Moderator
(@khankeong-yap)
Posts: 2
New Member
Topic starter
 

Hi Riny,
Thanks for your PQ. But there is some issue, i.e transaction 1003 and 1004 should able to fit in the time slot.

 
Posted : 30/12/2022 1:00 am
Riny van Eekelen
(@riny)
Posts: 1188
Member Moderator
 

Ah, I see. Other than a small filter error my method doesn't seem to work. don't really have a solution for that at the moment. Perhaps later,

 
Posted : 30/12/2022 2:50 am
Share: