分组后最新的记录


LEFT JOIN (select patent_no,legal_flag from t_legal_status as b where not exists(select 1 from t_legal_status where patent_no= b.patent_no
and b.publication_date<publication_date )) h on `a`.`patent_no` = `h`.`patent_no`

posted @ 2021-12-17 10:56  爱上-睡觉  阅读(14)  评论(0编辑  收藏  举报