Search documentation...

K
ChangelogBook a demoSign up

Lookup table usage

Identity resolution is only available on Business tier plans. You can use it with or without Customer Studio.

After Hightouch runs identity resolution (IDR) on your graph, Hightouch outputs tables into your warehouse so they can be used for any business need.

Your marketing team can use them for paid campaigns, your sales team for deduplicating outreach efforts, or data scientists for fraud dection.

The output of IDR can also helpful in constructing models or parent models in Hightouch.

Hightouch creates three output tables:

  1. A RESOLVED table (<your_output_table>_resolved) that labels each row from your input tables with a HT_ID representing a profile. This table tells you all the input rows associated with a profile by its HT_ID. The SOURCE is the slug of an input model. The PRIMARY_KEY is the primary key value from the input model. The LATEST_TIMESTAMP is the timestamp of the row from the input model.
HT_IDSOURCEPRIMARY_KEYLATEST_TIMESTAMP
ht1earl-s-ecommerce-events12024-08-01 12:00:00.000
ht1earl-s-ecommerce-events22024-08-01 12:05:00.000
ht1earl-s-ecommerce-events32024-08-01 12:10:00.000
ht1earl-s-ecommerce-events42024-08-01 12:15:00.000
ht5earl-s-ecommerce-events52024-08-01 12:20:00.000
ht5earl-s-ecommerce-events62024-08-01 12:25:00.000
ht5earl-s-ecommerce-events72024-08-01 12:30:00.000
ht5earl-s-ecommerce-events82024-08-01 12:35:00.000
ht9earl-s-ecommerce-events92024-08-01 12:40:00.000
ht9earl-s-ecommerce-events102024-08-01 12:45:00.000
  1. A RESOLVED_IDENTIFIERS table (<your_output_table>_resolved_identities) includes all the unique identifiers associated with each profile. Each row represents a unique identifiers associated with a profile. COUNT represents the number of times the identifier was seen in an input row, including updated rows if the same row gets seen multiple times due to updates. IDENTIFIER is the type of identifier. VALUE is the identifier value for the profile.
HT_IDIDENTIFIERVALUEINITIAL_ROW_PKINITIAL_ROW_SOURCEFIRST_TIMESTAMPLAST_TIMESTAMPCOUNT
ht1user_iduser_0034earl-s-ecommerce-events2024-08-01 12:15:00.0002024-08-01 12:15:00.0001
ht1anonymous_idanon_1251earl-s-ecommerce-events2024-08-01 12:00:00.0002024-08-01 12:15:00.0004
ht5user_iduser_0048earl-s-ecommerce-events2024-08-01 12:35:00.0002024-08-01 12:35:00.0001
ht5anonymous_idanon_1265earl-s-ecommerce-events2024-08-01 12:20:00.0002024-08-01 12:35:00.0004
ht9anonymous_idanon_1279earl-s-ecommerce-events2024-08-01 12:40:00.0002024-08-01 12:45:00.0002
  1. A UNRESOLVED table (<your_output_table>_unresolved) which lists all the input rows we couldn't process because they primary key of the rows were not unique within the model it came from.

Example: Finding the most frequent or recent email

If you are using Customer Studio, you can leverage the output of IDR in your parent models.

In this example, we'll use a hypothetical users table and output table from IDR, accounts_activity.

There are 3 steps:

  1. Create the parent model
  2. Create the related model
  3. Configure the Traits

Let's take a look:

1. Parent model

The parent model SQL is as follows:

SELECT users.*, idr.HT_ID
FROM HIGHTOUCH_PLANNER.accounts_activity_resolved AS idr
JOIN USERS AS users ON idr.USER_ID = users.USER_ID;

The base table is the users table and the generated Hightouch ID is joined in so it can be used later.

2. Related model

The next step is to create a 1:many related model with resolved table and join it with the parent model on the Hightouch ID.

select * from HIGHTOUCH_PLANNER.accounts_activity_resolved

3. The Traits

Each row in users may have multiple emails in the IDR output table. Traits can be used to quickly aggregate which email to use for a campaign.

For example, you may want to create a trait that grabs the most frequent email detected in the IDR output table.

Alternatively, you can order the IDR table by timestamp and grab the most recent email detected in the IDR output table.

Trait

Ready to get started?

Jump right in or a book a demo. Your first destination is always free.

Book a demoSign upBook a demo

Need help?

Our team is relentlessly focused on your success. Don't hesitate to reach out!

Feature requests?

We'd love to hear your suggestions for integrations and other features.

Last updated: Nov 20, 2023

On this page

Example: Finding the most frequent or recent email

Was this page helpful?