Use case
I have three publishers:
...
This case statement includes the else clause which will take care of publishers that are not A, B, or C. That should answer your question about Pub D.
Important Note
If you simply have Pub A, Pub B and Pub C, and you want to want to make sure the "last one in" wins for each publisher and you are OK with using a Preferred Publisher
strategy, then you can just add the expression SourceUpdateDate desc
in the Additional Order By
field as a tiebreaker instead of using this Custom Ranking
SemQL consolidation strategy. It still requires you to go through step 1-4 but you don't need to configure a Custom Ranking
consolidation rule. CAVEAT: This strategy only works if the SourceUpdateDate
field is populated for ALL records. If you have any nulls in SourceUpdateDate
, Oracle by default ranks Nulls first when ordering by descending. So using SourceUpdateDate desc
in the Additional Order By
field will not work. Instead, use a coalesce
with SourceUpdateDate
and CreationDate
: coalesce( SourceUpdateDate, CreationDate ) desc