I have a sample input table as
Declare @input TABLE(Name VARCHAR(8)) INSERT INTO @input(Name) values(\'Aryan\') INSERT INTO @input(Name) values(\'Aryan\
Declare your table variable as
Declare @input TABLE(_id int identity(1, 1), Name VARCHAR(8))
And then reqrite your query as
Select _id, name from @input where _id % 2 <> 0