Medidata Solutions interview question

Some behavior questions and one SQL test.