Created
October 30, 2010 02:21
-
-
Save stesla/654821 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Find required skills for Sin | |
SELECT skill.typeName, skillLevel.valueInt | |
FROM dgmTypeAttributes AS attr | |
INNER JOIN dgmAttributeTypes AS attrType | |
ON attr.attributeID = attrType.attributeID | |
AND attrType.attributeName LIKE 'requiredSkill_' | |
INNER JOIN invTypes AS skill | |
ON skill.typeID = attr.valueInt | |
INNER JOIN dgmTypeAttributes AS skillLevel | |
ON skillLevel.typeID = attr.typeID | |
INNER JOIN dgmAttributeTypes AS skillLevelType | |
ON skillLevel.attributeID = skillLevelType.attributeID | |
AND skillLevelType.attributeName = attrType.attributeName || 'Level' | |
WHERE attr.typeID = 22430; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment