I have been searching the forum for a good audit-logger, and found this super nice one: Record logging
First of all - it is a good audit log ! I really like it from an ADMIN perspective. Do you have a surgestion how I can transform the presentation of the audit log into a more user-friendly setup.
I have added the audit log trigger to a table tbl_setup_paycurve (paycurve_id, paycurve_name, kpi_id). Let's say I create a view (vw_paycurve) where I add the FK's value fx vw_paycurve.kpi_name.
Now somebody changes the paycurve_name. The audit log will log Table='tbl_setup_paycurve', FieldName='paycurve_name', PK='paycurve_id=1', OldValue='oldval', NewValue='Thisisanewvalue'.
HERE comes the question; How can I join the vw_paycurve and tbl_audit in a dynamic way? I want all the data in vw_paycurve and tbl_audit inner joined on the PK values.
Thanks!