I’m sure someone can help me through this problem that has overwhelmed my capabilities.
I have a work crew of up to 2,000 people that we provide meals for over a period of up to 21 days. I would like to store a representation of each person’s meal entitlements as a simple string in their crew record. See Source in the example below.
From this source table I would like to build a table for the kitchen to determine total breakfast, lunch, and dinner numbers on a given date. See Expected Results in the example.
The rest of the system I have built codes the meal data into groups of three. Each group represents a day (starting from a given start date), with each place in the group representing B, L, or D; 1 for true and 0 for false. It won’t to hard to refactor if there’s a better way to form the string.
I intend to rebuild the results table on a nightly basis via an automation for performance reasons but it would be great if if anyone had any suggestions regarding realtime updates without a serious performance hit.
Thank you all in advance…