CREATE INDEX m_code ON misc (code); DROP INDEX m_codeSELECT a.code,a.invfile,a.uniqueinvfile,a.type,a.type2,i.VarInvGfx,i.InvGfx1 FROM armor as a, itemtypes as i LEFT JOIN itemtypes on a.type = i.code -- UNION ALL -- SELECT a.code,a.invfile,a.uniqueinvfile,a.type,a.type2 FROM misc as a LEFT JOIN itemtypes on a.type = itemtypes.code -- UNION ALL -- SELECT a.code,a.invfile,a.uniqueinvfile,a.type,a.type2 FROM weapons as a LEFT JOIN itemtypes on a.type = itemtypes.code SELECT InvGfx1 FROM itemtypes WHERE Code = 'cm3'SELECT sk.id,sk.Skill,sk.skilldesc,`str name`,strings.`String` FROM skills as sk LEFT JOIN skilldesc ON sk.skilldesc = skilldesc.skilldesc LEFT JOIN strings on skilldesc.`str name` = strings.Key WHERE sk.charclass = 'ama'PRAGMA table_info(experience); SELECT Amazon FROM experience WHERE level = 1-1