Implemented inner join