Morgan Stanley interview question

Database questions in the first interview - you have ti provide the sql syntax