I need help with the following code:
SELECT p1.Country, CASE WHEN COUNT(ArrivalsDelay) > COUNT(DeparturesDelay) THEN COUNT(ArrivalsDelay) ELSE COUNT(Depa