Morgan Stanley interview question

Shell scripting and SQL queries