sluggercoach
Registered User.
- Local time
- Today, 09:59
- Joined
- Jun 12, 2007
- Messages
- 21
I have a challenging issue... I have 2 tables. One contains engines that are available to build by a specific part number. The other contains a schedule of which part numbers need to be built. I have been asked to take the schedule table, count the number of engines by part number (for instance 8 of part A, 10 of part B, etc) and from that, choose the engines from the available engine list based on it. The available engine list has the list of engines in first in, first out order. So, if I need 8 of part A and 10 of Part (I know how to count them from the schedule table), I need my program to automatically choose the 1st 8 of Part A (based on date in) and the 1st 10 of Part B and display them in one list. So essentially, I need to know how to create a query dynamically that will select the Top 8 or Top 10 based on the schedule. I am sure there are lots of complicated ways to do this but any ideas on the most simple and quick way?