Relearning some basic SQL, otes for good measure