---
title: "SQL排重并获得排重后最新记录"
author: "damies"
date: "2008-07-30T17:36:05Z"
tags: []
slug: "sql"
draft: false
lastmod: "2008-07-30T17:36:05Z"
id: 221642
url: "https://damies.iteye.com/blog/221642"
---

```
select   * from   c_pro_men   a  where   pla_end_dat   =  (select   max(pla_end_dat)   from   c_pro_men   where   emp_code   = a.emp_code and pro_id=1073)  and pro_id = 1073
```