Amazon Interview Question

Sql code for joining 2 tables