TBO.com interview question

Excel and sql questions of medium level difficulty