# MaterialTypeID vs typeid mapping?

**URL:** <https://forums.eveonline.com/t/materialtypeid-vs-typeid-mapping/454480>\
**Category:** Third Party Developers\
**Created:** [June 30, 2024, 1:49pm UTC](https://forums.eveonline.com/t/materialtypeid-vs-typeid-mapping/454480 "2024-06-30T13:49:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yoshua\_Calvert](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/yoshua_calvert/32/401979_2.png) [@Yoshua\_Calvert](https://forums.eveonline.com/u/Yoshua_Calvert)\
**Post date:** [June 30, 2024, 1:49pm UTC](https://forums.eveonline.com/t/materialtypeid-vs-typeid-mapping/454480/1 "2024-06-30T13:49:37Z")

</div>

Hi there,

Been tinkering around with fuzzwork csv files an am trying to map materialtypeid to typeid to and afterwards to typename but I’ll figure that one out once I am able to do the mapping. As I can’t find a mapping of materialtypeid vs typeid I am a bit at a loss.

Could someone point me in the right direction ?

thx

---

<div class="post-metadata">

**Author:** ![Yoshua\_Calvert](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/yoshua_calvert/32/401979_2.png) [@Yoshua\_Calvert](https://forums.eveonline.com/u/Yoshua_Calvert)\
**Post date:** [June 30, 2024, 2:07pm UTC](https://forums.eveonline.com/t/materialtypeid-vs-typeid-mapping/454480/2 "2024-06-30T14:07:24Z")

</div>

Can it be that simple ? they’re the same as typeid ?

---

<div class="post-metadata">

**Author:** ![Ed\_Thelleres](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/ed_thelleres/32/388321_2.png) [@Ed\_Thelleres](https://forums.eveonline.com/u/Ed_Thelleres)\
**Post date:** [July 4, 2024, 11:32pm UTC](https://forums.eveonline.com/t/materialtypeid-vs-typeid-mapping/454480/3 "2024-07-04T23:32:01Z")

</div>

Yep. In that table (industryActivityMaterials) you have two typeID references - one for the blueprint (typeID) and second one for the material used (materialTypeID) and both reference invTypes.typeID. To get materials required to build (activityID=1) Venture (typeID=32880), first get the blueprint typeID (32881) and find the required materials

Here’s the SQL if you ever decide to use that instead of CSV

```auto
SELECT typeID
FROM industryActivityProducts
WHERE productTypeID = 32880;

SELECT t2.typeName, t1.quantity 
FROM industryActivityMaterials t1
LEFT JOIN invTypes t2 ON t2.typeID = t1.materialTypeID
WHERE t1.typeID = 32881;

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system](https://forums.eveonline.com/u/system)\
**Post date:** [October 2, 2024, 11:32pm UTC](https://forums.eveonline.com/t/materialtypeid-vs-typeid-mapping/454480/4 "2024-10-02T23:32:36Z")

</div>

Closed on October 2, 2024, 11:32pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
