CREATE FUNCTION f_FindTotal(@semester int) RETURNS table AS RETURN( SELECT COUNT(课程号)as课程门数, SUM(学分)as总学分FROM课程表 WHERE开课学期 = @ semester) CREATE FUNCTION f_FindTotal(@semester int) RETURNS table AS RETURN( SELECT COUNT(课程号)as课程门数, COUNT(学分)as总学分FROM课程表 WHERE开课学期 = @semester) CREATE FUNCTION f_FindTotal(@semester int) RETURNS table AS RETURN( SELECT SUM(课程号)as课程门数, SUM(学分)as总学分FROM课程表 WHERE开课学期= @semester) CREATE FUNCTION f_FindTotal(@semester int) RETURNS table AS RETURN(SELECT SUM(课程号)as课程门数, COUNT(学分)as 总学分FROM课程表 WHERE开课学期 = @semester)