Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
imughal
Posting Yak Master
192 Posts |
Posted - 2005-01-30 : 23:17:14
|
| i have customer table with following fieldsid (identity)name varcharcustcode varcharin my table more records has same custcode now i want to keep only one record and delete any further record of same custcode.how i do that.thanks |
|
|
derrickleggett
Pointy Haired Yak DBA
4184 Posts |
Posted - 2005-01-30 : 23:39:02
|
| Use NOT EXISTS, NOT IN (not preferrable), or a LEFT OUTER JOIN. This is a pretty simple one, so you should be able to figure out.MeanOldDBAderrickleggett@hotmail.comWhen life gives you a lemon, fire the DBA. |
 |
|
|
|
|
|