用postgresql特性简化group by 后取每组前n条记录的方法

需求: 求一段时间内各生产线前3名坏机的原因及坏机数. step 1, 从将原始数据中抽取品质数据放于t96临时表 [sql]  view plain  copy create temp table t96    on commit drop    as    select * from t96_pd_log where recseq between '791G0' and '792G0' and
相关文章
相关标签/搜索