sqlserver 2000:SELECT SUM(rn) AS Expr1FROM (SELECT (SELECT COUNT(*) FROM sysobjects WHERE id < a.id) AS rn FROM sysobjects a) bWHERE (rn <= 100) AND (rn % 2 <> 0) 结果是2500.