Foundations
4 modules, 6 hours. Work through them in order: each module lists the ones it needs first.
-
f1 Select and filter ✓ done
- Browser
- 1 hour
Skills:
SELECT,WHERE,ORDER BY,NULL- Which animals have no photo?
- Which mammals does critwire list, by common name?
- Why doesn't
= NULLfind a missing value?
-
f2 Group and aggregate ✓ done
- Browser
- 1.5 hours
Prerequisites: Select and filter (f1)
Skills:
GROUP BY,HAVING,CASE,COUNT(DISTINCT …)- How many records does the sample hold per year, and by basis of record?
- Which species have more than 500 records?
- How many datasets contributed?
-
f3 Joins ✓ done
- Browser
- 2 hours
Prerequisites: Group and aggregate (f2)
Skills: Inner, left and anti joins; many-to-many; reading an ERD; light spatial in plain SQL (bounding boxes, 10° bins)
- Which animals were recorded in Brazil?
- Which have no records at all?
- How many records fall in each 10° box?
-
f4 Window functions ✓ done
- Browser
- 1.5 hours
Prerequisites: Joins (f3)
Skills: CTEs, subqueries, window functions
- Which dataset contributed most of each species' records, and what share is that?
- How does each year rank against the others?