Count of records in delivery logs using some foreign keys | Community
Skip to main content
niveditha_m1172
March 21, 2018
Solved

Count of records in delivery logs using some foreign keys

  • March 21, 2018
  • 2 replies
  • 2386 views

How do we get the count of records in Delivery Logs schema using the primary keys of Recipients schema (for more than 20k records)?

Primary keys of recipients schema will have at least one record existing in Delivery Logs schema.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kapil_Sharma_

Hi,

1. Take the Query Activity In the Workflow.

2. Select Recipients as Targeting Dimension and Recipient Delivery Logs as Filtering Dimension as shown below :

3. Not Add the query given below. (Primary Key Of Recipients = Required Primary Key). And this will fetch all the records of Delivery Logs from the Recipient ID of Recipient Table.

Note # Select Primary Key Column Of Recipients Table

OR

If you want to fetch only the counts through database, then use the below query to fetch the counts :

SELECT COUNT(*) FROM NMSBROADLOGRCP WHERE IRECIPIENTID='123'

2 replies

Kapil_Sharma_
Adobe Employee
Kapil_Sharma_Adobe EmployeeAccepted solution
Adobe Employee
March 21, 2018

Hi,

1. Take the Query Activity In the Workflow.

2. Select Recipients as Targeting Dimension and Recipient Delivery Logs as Filtering Dimension as shown below :

3. Not Add the query given below. (Primary Key Of Recipients = Required Primary Key). And this will fetch all the records of Delivery Logs from the Recipient ID of Recipient Table.

Note # Select Primary Key Column Of Recipients Table

OR

If you want to fetch only the counts through database, then use the below query to fetch the counts :

SELECT COUNT(*) FROM NMSBROADLOGRCP WHERE IRECIPIENTID='123'

Level 4
March 6, 2019

How to achieve the same in Campaign standard because I was not able to get Recipient Auto Primary key in filter window - Expression.