There is a canned report available through CCMA that will give you this information; Config- Agent Skillset Properties. I think this actually combines data from 3 different tables- Agent, SkillsetByAgent, and Skillset. If you are connecting directly to the database you should be able to use the SkillsetByAgent.stat although the skillsets will appear by ID rather than name but no biggie there. Good luck.