Advertisement
lockefox

ship attributes

Jan 21st, 2014
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.35 KB | None | 0 0
  1. SELECT conv.typeName,conv_attr.attributeName,COALESCE(attr.valueInt,attr.valueFloat,0) AS `AttributeValue`
  2. FROM invtypes conv
  3. LEFT JOIN invgroups grp ON (conv.groupID=grp.groupID)
  4. LEFT JOIN dgmtypeattributes attr ON (attr.typeID=conv.typeID)
  5. LEFT JOIN dgmattributetypes conv_attr ON (attr.attributeID = conv_attr.attributeID)
  6. WHERE grp.categoryID = 6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement