Is there a sql query, that list all files, which belong to selected EPDM categorise?

​Is there a SQL query, that list all files, which belong to selected EPDM categorise?

i would like to list all documents that belong to 3 different categories. Also with The documents, to list workflow state, and some variables such description, doc number, project no, Etc.

i don't have any experience with SQL.

Cheers.

SolidworksSolidworks Pdm enterprise Pdm