Sage Interview Question

Basic SQL operations, and a problem solving question.