Query to list new files added within the last 'x' days

Discuss SolidWorks PDM
jjbahnsen
Posts: 2
Joined: Thu Sep 23, 2021 11:50 am
Answers: 0
x 1

Query to list new files added within the last 'x' days

Unread post by jjbahnsen »

Does anyone have a SQL query that will list all the new files added to the vault for a specific time period along with several variable values? My SQL query skills aren't too bad but I haven't been able to figure this out. Thanks!
User avatar
bnemec
Posts: 1854
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2439
x 1330

Re: Query to list new files added within the last 'x' days

Unread post by bnemec »

There is added to vault and first check in, they're different but I believe searchable.

Searching variable values in SQL is more difficult IMO. I use the API search, when possible, for searching by variable value. I've done it with SQL in the past but it took a lot of searching and research to find the right joins to get the correct data. The variable values are stored by version and the version number in the variable value row is the last version that the variable value changed, so not necessarily the latest version.
Post Reply