Ticomix interview question

Common whiteboard questions. For example, had to write and solve a SQL select statement.