попробуйте это, но я не считаю производительность
--create table
create table t(letter char(1))
go
--insert values
BEGIN TRAN
INSERT INTO t VALUES ('A')
INSERT INTO t VALUES ('B')
INSERT INTO t VALUES ('C')
INSERT INTO t VALUES ('D')
INSERT INTO t VALUES ('E')
INSERT INTO t VALUES ('F')
INSERT INTO t VALUES ('F')
INSERT INTO t VALUES ('F')
INSERT INTO t VALUES ('G')
COMMIT TRAN
GO
--and then try the select what you want
DECLARE @temp table(num int identity(1,1), letter char(1))
--use a temp table variable to store the data with row number
insert into @temp
SELECT * FROM t
--select the value
SELECT * FROM @temp WHERE letter = 'F'
GO
--drop the table finally
drop table t
GO