You know what I did not mention, is the data itself:
I wrote below select statement:
select p.PKID, b.lastname, b.firstname, c.chcode from Person P, charges c
where p.PKID= c.PKIDand
p.lastname = 'ABC' and p.firstname = 'XYZ'
I got:
326 ABC XYZ CHRG07M1
326 ABC XYZ CHRG235
326 ABC XYZ TTSS1111
326 ABC XYZ DDE1111
605 ABC XYZ CHRG123
916 ABC XYZ GRK456
405 ABC XYZ CHRG456
474 ABC XYZ CHRG123
557 ABC XYZ SSS345
943 ABC XYZ MM4567
943 ABC XYZ CHRG123
943 ABC XYZ UTM121
217 ABC XYZ MER345
217 ABC XYZ DES3237M1
I assume is the PKID is what is causing the issue because the PKID changes based on number of times entries we entered to the system.