Pregunta de entrevista de Online24x7

How to join table with common attributes.