IBM interview question

Explain joins in sql with example