You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: alexander_connelly_code_challenge.txt
+74-18Lines changed: 74 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -339,23 +339,79 @@ b. order this list by:
339
339
- continent_name ascending
340
340
- characters 2 through 4 (inclusive) of the country_name descending
341
341
342
-
c. create a running total of gdp_per_capita by continent_name
343
342
344
-
d. return only the first record from the ordered list for which each continent's running total of gdp_per_capita meets or exceeds $70,000.00 with the following columns:
343
+
SELECT continent_name, country_code, country_name, gdp_per_capita FROM braintree.gdp_join
344
+
345
+
where year = 2009
346
+
347
+
order by continent_name asc, substring(country_name,2,3) desc
7\. Find the country with the highest average gdp_per_capita for each continent for all years. Now compare your list to the following data set. Please describe any and all mistakes that you can find with the data set below. Include any code that you use to help detect these mistakes.
0 commit comments