Capital One Interview Question

SQL queries were asked Case study