SELECT tb1.username, tb2.username FROM tablea ta JOIN tableb tb1 ON ta.idrespg = tb1.iduser JOIN tableb tb2 ON ta.idrespp = tb2.iduser>I have two tables (A and B) and in Table A there are to fields (IDRespG and IDRespP varchar(13) both) and in table B I have the IDUser (varchar(13)) and UserName