I have a table called Products with fields ProductID,ProductName,ProductLevel,Description.
ProductName ProductID ProductLevel Description
ProdA A1 level1 blah...
ProdA A1 level1 blah...
ProdC A2 level2 blah..
ProdD A3 level3 blah..
ProdD A3 level3 blah...
ProdE A4 level3 blah...
ProdE A4 level2 blah...
what I want is an sql query that delete duplicate records based on distinct ProductID and ProductLevel fields,the result will be something like this..
ProductName ProductID ProductLevel Description
ProdA A1 level1 blah...
ProdC A2 level2 blah..
ProdD A3 level3 blah..
ProdE A4 level3 blah...
ProdE A4 level2 blah...
btw,no PK
Thanks in Advance
ProductName ProductID ProductLevel Description
ProdA A1 level1 blah...
ProdA A1 level1 blah...
ProdC A2 level2 blah..
ProdD A3 level3 blah..
ProdD A3 level3 blah...
ProdE A4 level3 blah...
ProdE A4 level2 blah...
what I want is an sql query that delete duplicate records based on distinct ProductID and ProductLevel fields,the result will be something like this..
ProductName ProductID ProductLevel Description
ProdA A1 level1 blah...
ProdC A2 level2 blah..
ProdD A3 level3 blah..
ProdE A4 level3 blah...
ProdE A4 level2 blah...
btw,no PK
Thanks in Advance