SELECT TOP 20 FullNameCache,CAST(NameId AS NVARCHAR) AS NameId FROM Name WHERE FullNameCache IS NOT NULL AND FullNameCache <> '' AND FullNameCache LIKE '#searchstring#%' ORDER BY FullNameCache SELECT TOP 20 AuthorTeamCache,CAST(AuthorTeamId AS NVARCHAR) AS AuthorTeamId FROM AuthorTeam WHERE AuthorTeamCache IS NOT NULL AND AuthorTeamCache <> '' AND AuthorTeamCache LIKE '#searchstring#%' ORDER BY AuthorTeamCache