/curious-scientists

Students test their SQL knowledge with these online puzzles.

Primary LanguageClojure

The Curious Scientist

General Notes

While we generated a Compojure web application, this is primarily an Incanter project, as the Clojure aspect generates the data that the front-end web application downloads and consumes using the AlaSQL client database.

Web Interface

Each lesson will be available on a single HTML page.

Should we do a standard page, and then have the individual stuff downloaded?

Development

Using Emacs with csv-mode

Lesson 1: Dolphins

The trick is that the query should search for dolphins fed earlier than the last 4 hours … not today, even though the text of the question will be today.

Each Dolphin record should have the following fields (created by Clojure):

ID
Some random number between 1000 and 5000
Name
String
Last Fed
Timestamp that alasql understands
Weight
Integer between 150 and 650 kg
Length
Float between 2 and 4 m
Age
Approximate … date arrived?
Sex
male or female (based on name?)

Lesson 2: Arsenic and Old Moss

What is the highest level of airborne arsenic Maybe other chemicals What year were they lowest? When we’re they elevated?

Major polluters and their chemicals New business licenses with date range and area …. How do we query areas? By neighborhood name? Good enough.