I'm new to SQL & practicing OLYMPICS dataset on kaggle & unable to query out the result in single row. The question mark is where I am stuck
select games, count(DISTINCT r.region) AS a, count(DISTINCT r.region) AS b
from oly
JOIN regions r
ON oly.noc = r.noc
group by games
order by a ASC
LIMIT 1
?????
select games, count(DISTINCT r.region) AS B
from oly
JOIN regions r
ON oly.noc = r.noc
GROUP BY games
ORDER BY B desc
LIMIT 1 ;