Hello, I am having difficulties with this class work question
List the various courseTitles, and for each course with the number of
female students registered. Order the list by descending counts.
The query I have used so far:
SELECT course.courseTitle, COUNT(DISTINCT student.sex)
FROM course, student
WHERE student.sex = 'f'
There are 2 Course Titles but the output of the above query only displays the first Course Title instead of both.
Also, instead of displaying the count of 'F' (females) as 6 it displays it as 1