SQL exercises on soccer Database: Find the number of shots taken in penalty shootout matches
SQL soccer Database: Exercise-22 with Solution
22. Write a query in SQL to find the number of shots taken in penalty shootout matches.
Sample table: penalty_shootout
SELECT COUNT(*) AS "Number of Penalty Kicks" FROM penalty_shootout;
Number of Penalty Kicks ------------------------- 37 (1 row)
Sample Database: soccer
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
Previous: Write a query in SQL to compute a list to show the number of substitute happened in various stage of play for the entire tournament.
Next: Write a query in SQL to find the number of shots socred goal in penalty shootout matches.
What is the difficulty level of this exercise?