Skip to content
Advertisement

sql track changed values

I’m trying to find out what values user changes the most. I have a user table like this:

enter image description here

This is a User Table where entries not get changed. If a user changes something, it creates a new record to track what users change.

Now I want to get something like this:

enter image description here

I want the column names (E-Mail, Phone etc.) as values so I can sort.

Has anyone an idea how I could do that please?

Edit: I’m using SSMS and T-SQL

Advertisement

Answer

It looks horrible but it works:

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement