Wed May 21 10:13:11 EDT 2014

Can a table refer to a table?

It seems that in SQL this doesn't make sense, as this would require
polymorphy.  Seems this gets into ORM territory[1].

Basically, my application understands subclasses, but how to I stick
them into the DB?  Essentially I want a table that refers to different
tables (types / classes), each with a set of rows (data/object

Maybe the main question is: how to stay relational and avoid ORM?

[1] http://en.wikipedia.org/wiki/Object-relational_mapping
[2] http://en.wikipedia.org/wiki/Object-relational_impedance_mismatch