I have two tables Fact
and Dimension
. Dimension contains two fields ID
and ObjectID
. Fact contains DimensionKey
which join to the ID
in Dimension. ID
is unique but ObjectID
is not. This is a versionning mechanism. All rows having the same ObjectID
are actually different versions of the same object.
I am trying to find the count of all Facts
pointing to all versions of Dimensions
for a certain object.