有一个记录集,我希望根据 PO 获取最短日期的记录,直到成本发生变化。任何帮助,将不胜感激。大约有 700 万条记录,而当前光标并没有切断它。
样本:
PO log_Ts cost
123 2012-06-26-10.37.44.035385 2.5896
123 2012-06-27-02.16.14.706817 2.5896
123 2012-06-26-10.28.57.540731 2.591
123 2012-06-26-10.37.43.948940 2.5896
123 2012-06-26-10.37.43.421713 2.5896
123 2012-06-26-18.34.37.191917 2.5896
123 2012-06-27-02.16.14.705622 2.5896
123 2012-06-27-04.33.18.264742 2.5896
123 2012-06-26-10.37.44.007667 2.5896
123 2012-06-26-10.37.43.706207 2.5896
123 2012-06-26-10.26.56.767121 2.5896
123 2012-06-26-10.37.43.919248 2.5896
Looking to grab:
PO log_Ts cost
123 2012-06-26-10.26.56.767121 2.5896
123 2012-06-26-10.28.57.540731 2.591
123 2012-06-26-10.37.43.421713 2.5896