Answered step by step
Verified Expert Solution
Question
1 Approved Answer
From the above tables, write an SQL query to count the number of yellow cards each country has received. Return the country name and number
From the above tables, write an SQL query to count the number of yellow cards each country has received. Return the country name and number of yellow cards.
\begin{tabular}{|c|c|c|c|c|c|} \hline count & ry_id & country & & country_name & \\ \hline & & & & & \\ \hline & 121 & ALB & & bania & \\ \hline & 1202 & AUT & & stria & \\ \hline & 1203 & BEL & & lgium & \\ \hline & 1204 & CRO & & oatia & \\ \hline & 1205 & CZE & & ech Republic & \\ \hline & 1206 & ENG & & gland & \\ \hline & 127 & FRA & & ance & \\ \hline & 1208 & GER & & rmany & \\ \hline & 1209 & HUN & & ngary & \\ \hline match_no & team_id & player_id & Ine I & sent_off I play_sc & \\ \hline 1 & 1216 & 160349 & 32 & NT & 1 \\ \hline 1 & 1216 & 160355 & 45 & NT & 1 \\ \hline 1 & 1207 & 160159 & & NT & 2 \\ \hlinei & 1216 & 160360 & 78 & NT & 2 \\ \hline 2 & 1221 & 168470 & 24 & NT & 1 \\ \hline 2 & 1201 & 160013 & 23 & NT & 1 \\ \hline 2 & 1201 & 160013 & 36 & NT & 1 \\ \hline22 & 1201 & 160014 & 63 & NT & 21 \\ \hline 2 & 1221 & 160472 & 66 & NT & 2 \\ \hline \end{tabular}Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started