我有这张桌子
[1|Sub1|Mark1|Sub2|Mark2|Subj3|Mark3|...]
[2|JSP |85 |ASP |70 |PHP |95 |...]
我需要两个最大科目的平均成绩吗?
例如
您可能要问这个吗?
SELECT ID,
(SELECT AVG(v)
FROM (VALUES (Mark1), (Mark2), (Mark3), (Mark4), (Mark5)) AS value(v)) as [AverageMarks]
FROM Tbalee1