Hi,
I creatde a view, which contains three fields, Username, Number of Changes Made, FieldName. The table shows how many changes each user has made to each field. I would like to write a query which displays each user's top 3 fields (the 3 fields each user made most changes to).
I ran the query:
SET ROWCOUNT 10
SELECT UserName, [Number of Changes Made], FieldName
FRIN FRom v_Audit_FieldbyUser
ORDER BY [Number of Changes Made] DESC
SET ROWCOUNT 0
I only got 10 rows of data showing the top 10 fields changed by all users.
Thank you in advance!
I creatde a view, which contains three fields, Username, Number of Changes Made, FieldName. The table shows how many changes each user has made to each field. I would like to write a query which displays each user's top 3 fields (the 3 fields each user made most changes to).
I ran the query:
SET ROWCOUNT 10
SELECT UserName, [Number of Changes Made], FieldName
FRIN FRom v_Audit_FieldbyUser
ORDER BY [Number of Changes Made] DESC
SET ROWCOUNT 0
I only got 10 rows of data showing the top 10 fields changed by all users.
Thank you in advance!