Skip to content

Commit

Permalink
Create solutions.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
spatialthoughts committed Jun 23, 2023
1 parent 61ffbad commit d404163
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/intro_to_qgis/solutions/solutions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Get 10 Largest Earthquakes

# expression
array_contains(array_slice(array_reverse(array_sort(array_agg(expression:="Total Deaths", order_by:="Total Deaths", filter:="Total Deaths" is not NULL))), 0, 9), "Total Deaths")

# SQL
SELECT * from input1 ORDER BY "Total Deaths" DESC LIMIT 10

0 comments on commit d404163

Please sign in to comment.