Implemented constructInnerJoinSql method for Relationsip class.