# IFC for relational databases - ifcSQL

**URL:** <https://forums.buildingsmart.org/t/ifc-for-relational-databases-ifcsql/1524>\
**Category:** Serializations\
**Created:** [June 20, 2019, 2:09pm UTC](https://forums.buildingsmart.org/t/ifc-for-relational-databases-ifcsql/1524 "2019-06-20T14:09:31Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![bsbock](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.buildingsmart.org/bsbock/32/435_2.png) [@bsbock](https://forums.buildingsmart.org/u/bsbock)\
**Post date:** [June 27, 2019, 7:07pm UTC](https://forums.buildingsmart.org/t/ifc-for-relational-databases-ifcsql/1524/19 "2019-06-27T19:07:54Z")

</div>

Thank you for upload, @ReD_CoDE!

The result looks like this:

CREATE TABLE IfcObject (oid INTEGER,  
GlobalId TEXT,  
OwnerHistory INTEGER,  
Name TEXT,  
Description TEXT,  
ObjectType TEXT);  
…  
CREATE TABLE IfcActorRole (oid INTEGER,  
Role VARCHAR,  
UserDefinedRole TEXT,  
Description TEXT);  
…  
IfcObject is abstract and IfcActorRole is derived from IfcObject, which contains only the attributes, that are not contained in IfcObject.  
This is **Strategy no. 4:**  
Store every inheritance-step in its own table(782).  
(+) recognition value  
(+) rule checking on base-classes possible  
(-) don’t work with _(every)_ SELECT-Types  
(-) too much tables (more confusing than strategy no. 3)

---

_[View the full topic](https://forums.buildingsmart.org/t/ifc-for-relational-databases-ifcsql/1524)._
