Please Refer Below Sql query
SQL
CREATE TABLE #temp(Number VARCHAR(15))
CREATE TABLE #temp1(Digits VARCHAR(15))
INSERT INTO #temp VALUES('924-852132-200')
INSERT INTO #temp VALUES('927-856985-200')
INSERT INTO #temp1 VALUES('927-856985-100')
INSERT INTO #temp1 VALUES('927-12360-400')
SELECT COUNT(*) [Count] FROM #temp,#temp1 WHERE SUBSTRING(#temp.Number,0,12) = SUBSTRING(#temp1.Digits,0,12)
DROP TABLE #temp
DROP TABLE #temp1
OutPut
Count = 1