J.P. Morgan Interview Question

Questions on database and sql queries and joins