对于这样的情况,使用by短语而不选择任何列与将last应用到所有列相同。
select by sym from t
应该做的把戏
q)(select last px, last sh by sym from t)~select by sym from t 1b