Morningstar interview question

technical questions about database and sql