• Please list all indexes on [BuildTable].

    Also, shouldn't the SecondApply query have a condition based on FirstApply value, something like:

    WHERE [BuildTable].[rownum] > [FirstApply].[rownum]

    ?

    Edit: Added "WHERE" for clarity.

    SQL DBA,SQL Server MVP(07, 08, 09) A socialist is someone who will give you the shirt off *someone else's* back.