Start a new topic
Answered

How do I get the golden data for a given source id?

How do I get the golden data for a given source id?


Best Answer

To get the golden data starting from a sourceID (master id), you’ll need to run a query joining the master data table (MD_) and golden data table (GD_)

The join attributes are “goldenID” on MD_ and “id” on GD_

As a side note, sourceID isn’t enough to identify a master record, you will need both sourceID and pubID to do so

The query should look like

 

select GD.*
from GD_<entity> GD join MD_<entity> MD on GD.ID = MD.<goldenID>
where MD.sourceID = <input_sourceID> and MD.PubID = <input_pubID>

 

1 Comment

Answer

To get the golden data starting from a sourceID (master id), you’ll need to run a query joining the master data table (MD_) and golden data table (GD_)

The join attributes are “goldenID” on MD_ and “id” on GD_

As a side note, sourceID isn’t enough to identify a master record, you will need both sourceID and pubID to do so

The query should look like

 

select GD.*
from GD_<entity> GD join MD_<entity> MD on GD.ID = MD.<goldenID>
where MD.sourceID = <input_sourceID> and MD.PubID = <input_pubID>

 

Login to post a comment