
Originally Posted by
June7
This appears to be saving duplicate data. The Sched_Next_Ship_Date can be retrieved by query whenever needed. It is not necessary to store in another table. Stored or not, it is the same query to retrieve the value. The extra step of committing the value to another table is unnecessary.
You want to retrieve the date that is closest to and later than or equal to the current date? The component number is not a consideration? Try:
SELECT Project_Number, Min(Sched_Ship_Date) AS Sched_Next_Ship_Date FROM ShipDeliveryDates WHERE Sched_Ship_Date>=Date() GROUP BY Project_Number;
BTW, advise no spaces or special characters/punctuation (underscore is exception) in naming convention.