KrazyKasper
Board Regular
- Joined
- Aug 28, 2008
- Messages
- 87
This should be so simple, but I cannot figure it out.
I have a list of machines, each of which has a MachineNumber, several PeriodDates, and Prices for each.</SPAN>
I need to select the record that has the most current PeriodDate for each machine. For example:</SPAN>
MachineNbr PeriodDate Price</SPAN>
Machine1 05/01/2010 $100</SPAN>
Machine1 08/10/2012 $200</SPAN>
Machine1 01/01/2015 $150</SPAN>
Machine2 11/01/2012 $100</SPAN>
Machine2 09/15/2014 $200</SPAN>
When I select “Max” PeriodDate, I still get multiple records for each machine. How can I get the most current record (based on Period Date) per machine?
Thanks.</SPAN>
I have a list of machines, each of which has a MachineNumber, several PeriodDates, and Prices for each.</SPAN>
I need to select the record that has the most current PeriodDate for each machine. For example:</SPAN>
MachineNbr PeriodDate Price</SPAN>
Machine1 05/01/2010 $100</SPAN>
Machine1 08/10/2012 $200</SPAN>
Machine1 01/01/2015 $150</SPAN>
Machine2 11/01/2012 $100</SPAN>
Machine2 09/15/2014 $200</SPAN>
When I select “Max” PeriodDate, I still get multiple records for each machine. How can I get the most current record (based on Period Date) per machine?
Thanks.</SPAN>