inner join works, need more tests to exercise the code