--- THOUSAND Separator
-- http://stackoverflow.com/questions/43133609/how-can-i-use-a-thousand-separator-in-sql-server
-- Created a Temporary table with name and salary
CREATE TABLE #Dummy
(
Name varchar(10),
Salary INT
)
-- Inserted values into the dummy value
INSERT INTO #Dummy VALUES ('Harsha' , 8000 );
INSERT INTO #Dummy VALUES ('Ajay' , 7000 );
INSERT INTO #Dummy VALUES ('DJ' , 6000 );
INSERT INTO #Dummy VALUES ('Suresh' , 5000 );
SELECT Name , REPLACE(REPLACE(CONVERT(VARCHAR,CONVERT(MONEY , Salary ),1),'.00',''),',','''') FROM #Dummy;
-- Linkedin : https://www.linkedin.com/in/harshasannareddy/