declare @table1 table(nr int, artnr varchar(10), typNr int);
insert into @table1(nr, artnr, typNr)
values
(4747, 'mob100', 3),
(4747, 'mob123', 4),
(4842, 'mob122', 1),
(2051, 'mob123', 5),
(2051, 'mob125', 5) ;
SELECT nr
FROM @table1
WHERE artnr LIKE '%Mob%'
GROUP BY nr
HAVING MIN(typNr) <> MAX(typNr)
ORDER BY nr asc;