Hi
I'm a newbie in SQL and for scores whose credit is greater than 2, I want to select students with scores of 10 or more .Here is what I wrote and Im having errors(See table below):
SELECT Student,COUNT(Score)>=10 AS NumPasses
WHERE Credit>2
GROUP BY Student
Student Credit Score
Tomy 3 11
Tomy 3 8
Tomy 2 13
Tomy 3 14
Dick 3 8
Dick 3 14
Dick 2 12
Dick 3 7
Hary 3 8
Hary 3 7
Hary 2 11
Hary 3 9
I want the query results to be as below
Student NumberOfPasses
Tomy 2
Dick 1
Hary 0
Can someone help
Thanks