SELECT CASE WHEN datepart(dw, 필드이름) = 1 THEN '일요일' WHEN datepart(dw, 필드이름) = 2 THEN '월요일' WHEN datepart(dw, 필드이름) = 3 THEN '화요일' WHEN datepart(dw, 필드이름) = 4 THEN '수요일' WHEN datepart(dw, 필드이름) = 5 THEN '목요일' WHEN datepart(dw, 필드이름) = 6 THEN '금요일' ELSE '토요일' END , count(*) FROM table_name GROUP BY datepart(dw, 필드이름) ORDER BY datepart(dw, 필드이름)