How to remove last value with comma, I want to take recored only 5
declare @brokername1 nvarchar(max)='indiabullssecurities,canmoney,indianivesh,acumencapitalmarket,sharekhan,edelweisscapital';
print @brokername1
I want this string 'indiabullssecurities,canmoney,indianivesh,acumencapitalmarket,sharekhan'