Ripple Interview Question

Sql questions, two table must retrieve data.