Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Duplicate SQL records

Status
Not open for further replies.
Dec 5, 2001
44
US
I have a table with some duplicate records and I would like to convert it into a table with unique records.

The table stores employee history in the company. There is one record for each position that an employee held in the company. The records aren't technically duplicate. The office address or title may be different. I would like to keep the first record for each employee and delete the rest.
Unfortunately, the data that I got from the DW doesn't have a time stamp which I could have used to keep the latest records only. Here are some of the important columns:

EmployeeID; FirstName; LastName; Title; EmpDate; Address

Any ideas??

Thanks,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top