ItmsGrpCod(smallint) ItmsGrpNam(nvarchar) 100 Items 101 Accessories 102 HP Printers 103 IBM Printers 104 PCs 105 Servers
100-Items 101-ACCESSORIES @ 5 102-AIRTEL DTH 103-AKSHAYA GRINDER 104-AMBAL GRINDER 105-ASAL INDCOOK 106-BAJAJ APPLIANCES
select ItmsGrpCod +'-'+ ItmsGrpNam from TableName.
+
SELECT CONVERT(VARCHAR(30), ItmsGrpCod) + '-' + ItmsGrpNam AS [NewCode]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)