I have following table
column1 column2 newvalue oldvalue
in columns newvalue oldvalue are values (foreign keys) from other table. I need display some other column from referenced table(i.e. based on primary keys). So in select instead of newvalue as some key will be displayed some column which coresponds to the keys. I am new here, so if you want to clarify my question more, i will do it. Thanks in advance.
Edit: In first table are columns entityID(from audited table), columnName, OldValue, NewValue
second table AddressId, city, street, ZIPCode.
In first table in colmns newvalue, oldvalue are PKs from second table. I need display for example oldstreet, new street.