Queying SQL Database Basics

Hi,
I am trying to query our SQL Database in PDMWorks Enterprise to getinformation on files, specifically if they are checked in our out.I have no DB experience but have been looking at samples all aroundto see the basics. How would I get information on a file if it ischecked in or out? I want to use this in conjunction with thereport generator.

Thanks.SolidworksSolidworks Pdm enterprise Pdm