From the following tables, write a SQL query to count the number of penalty shots taken by the teams
- برمجة سي كيو ال sql
- 2021-09-04
- mhanasmh00489829403
الأجوبة
SELECT a.country_name, COUNT(b.*) as "Number of Shots"
FROM soccer_country a, penalty_shootout b
WHERE b.team_id=a.country_id
GROUP BY a.country_name;
Sample Output:
country_name | Number of Shots --------------+----------------- Poland | 9 Italy | 9 Germany | 9 Portugal | 5 Switzerland | 5 (5 rows)
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال