If I understand correctly you want to retreive the list of numbers which are not in the sequence for a given ID.
Here is one approach.
Create a table to hold all the numbers from 1 to 10.
CREATE TABLE #Sequence
(
ID INT
)
DECLARE @MaxValue INT
DECLARE @Value INT
SET @Value = 1
SELECT @MaxValue = MAX(Sequence) FROM #Table1 WHERE ID = 1
WHILE @Value <= @MaxValue
BEGIN
INSERT INTO #Sequence
SELECT @Value
SET @Value = @Value + 1
END
Then retrieve the missing numbers in the sequence using the below query.
SELECT ID FROM #Sequence
WHERE ID NOT IN
(
SELECT Sequence FROM Table1 WHERE Id = 1
)