Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Duplicate record avoid

$
0
0

I have one table name as Itemmaster

I have fileds ItemCode, ItemName,ItemDet,price . Now the problem is I can duplicate records with name of ItemName,ItemDet  ,  Item code is distinct.   Now I need records with distinct with name of ItemName and ItemDet.

Eg: for duplicate entries showing as 

 Itemcode  ItemName                                                     ItemDetails

20          DRINK INSTANTAL AQILI DIST FOSTER CLARKS DRINK INSTANT 15X750 GRS
21          DRINK INSTANTAL AQILI DIST FOSTER CLARKS DRINK INSTANT 15X750 GRS
22          DRINK INSTANTAL AQILI DIST FOSTER CLARKS DRINK INSTANT 15X750 GRS

I want to see one record when I am fetching all record. I don't want to see duplicated .

Can anyone send me the query for it.


AK


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>