Infosys interview question

Write an sql query to join two tables