PDM: How to find the ProjectID

Is there a SQL query that can find the ProjectID of a file in a folder?