• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

To display ChangeLog results in peculiar scenario

Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I have the tables called,USERROLES and USERROLE_ADT, In my application,User has some set of roles assigned. Administrator can add or delete the roles.

Whenever he modifies the role, we are deleting the all roles and inserting the roles newly(As we can't update the USERROLE table due to some database integrity).

Now i need to display the changelog for the userroles, whenever roles are changed for the user, we need to display those details are in below format

field currentvalue oldvalue changed date change by

role1 active deleted today(dd/mm/yyyy) adminName
role2 deleted active yesterday(dd/mm/yyyy) adminName2

Could any one comeup with Query level or java layer solution..

It's fun to be me, and still legal in 9 states! Wanna see my tiny ad?
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic