I tried to retrieve some results from a query in my Oracle tables.
The objective is to retrieve the total amount of prize money won by all competitors that belong to 3 countries:
This is my current query:
SELECT NATIONALITY, TOTALPRIZEMONEY
FROM COMPETITOR
WHERE NATIONALITY ='USA'
AND NATIONALITY = 'AUSTRALIA'
AND NATIONALITY = 'SINGAPORE'
GROUP BY NATIONALITY;
Below is a screenshot of my table structure:
I am getting the error:
ORA-00979: not a GROUP BY expression
00979. 00000 - "not a GROUP BY expression"
May I request help in this question? Thank you

SELECTa field it must either be in yourGROUP BYor be an aggregate.SELECT NATIONALITY, SUM(TOTALPRIZEMONEY)orGROUP BY NATIONALITY, TOTALPRIZEMONEY.