Litmus7 interview question

establish connection between two tables using sql queries