This forum helped me create the following query:
select userid, count(userid) as countofuserid
from tblSyDBAudit
where ChangeDate >= Convert(datetime, '2015-01-01') and
keydata like '%docx' and
Action like 'insert' and
TableChanged like 'tblCsDocument' group by userid
The query works great. It is basically counting the number of documents (.docx) users are creating after a specified date. As you can see, it is actually counting the number userids. The query only counts .docx. However, users also create documents with the .doc extension as well. I have to manually run the query for both types of doc extensions (.doc and .docx) then add the results together. I am lazy, and I would like to the query to include both extensions, so I do not have to run it twice. I have tried getting the syntax to work, but I keep running into errors. If this does not make sense please let me know. Thanks in ad