Infosys Interview Question

Write an sql query to join two tables