I am trying to design an interface where a user can query audit activity across 3 tables that are related. The 3 entities are as follows: Program, Item and ProgramItem and each have their respective audit tables. As suspected, the Program and Item PKs
are foreign keys in the ProgramItem table. The design challenge i am facing is that each table has columns that are being tracked but I was trying to design an interface which would display the audit transactions of all 3 tables in only ONE report grid depending
on the parameters selected. I was thinking of joining the audit entities in one view and then wrapping it into a parametrized stored proc. Issue is that since the entities are at different levels, the result set will return repeating entries for the parent
tables. I hope I am clear but please respond if additional info is needed. Hanks in advance
↧