Cognizant interview question

Joins in SQL, Oops in python.