(
SELECT '2.51 - 3.00' AS [GPA] , ISNULL(COUNT(*),0) AS [จำนวนคน]
FROM Course AS C JOIN DataNisit AS D ON C.ID = D.ID
WHERE D.GPA BETWEEN 2.51 AND 3.00
) UNION
(
SELECT '3.01 - 3.49' AS [GPA] , ISNULL(COUNT(*),0) AS [จำนวนคน]
FROM Course AS C JOIN DataNisit AS D ON C.ID = D.ID
WHERE D.GPA BETWEEN 3.01 AND 3.49
) UNION
(
SELECT '3.51 - 4.00' AS [GPA] , ISNULL(COUNT(*),0) AS [จำนวนคน]
FROM Course AS C JOIN DataNisit AS D ON C.ID = D.ID
WHERE D.GPA >= 3.51
)