Select, Filter and Sort · Problem 4 of 118

Heavy Courses

EasySelect, Filter and SortSchool data

The school office wants the courses that carry a heavy workload.

Return the code and title of every course worth 4 credits or more, sorted by code.

Hint 1

"4 or more" is >= 4, not > 4.

Reference solution

SELECT code, title
FROM courses
WHERE credits >= 4
ORDER BY code;

The boundary matters: >= 4 includes courses with exactly 4 credits and > 4 does not. Whenever a task says "at least", "or more", "up to" or "no more than", decide whether the boundary value belongs in the answer.