sharepoint0520
asked on
Need help to write SQL query in Sales force Marketing cloud
Hello,
In Salesforce Marketing cloud we have four system tables. 1. Job , 2.Sent , 3.Open and 4.Cllick. Now we have one html file where user receive by email. user open the link and click the button (Click to Buy or Click to Call). Now we have to make three query.
1. No Open , No Click
2. Open , No Click
3. Open and Click
Data Views Links:
Job Data view
Sent Data View
Open Data view
CLick Data view
Subscriber Data View
Can you please help me to write quesry?
In Salesforce Marketing cloud we have four system tables. 1. Job , 2.Sent , 3.Open and 4.Cllick. Now we have one html file where user receive by email. user open the link and click the button (Click to Buy or Click to Call). Now we have to make three query.
1. No Open , No Click
2. Open , No Click
3. Open and Click
Data Views Links:
Job Data view
Sent Data View
Open Data view
CLick Data view
Subscriber Data View
Can you please help me to write quesry?
ASKER
HI,
Can you please help me write all three query?
Can you please help me write all three query?
I cannot read your mind.... I need to know what you expect the query to do
ASKER
Hello,
I am so sorry to give half details. We sent link to users by email. Those information store in sent table. Now if user open the email then it's goes to open table. If user click the button on link , that information goes to click table. Subscriber table has subcriber information. Now i will need the three queries.
1. Who did not open and did not click
2. Who open the link but did not click on button
3. Who open the link and clcik the button.
I will need some basic columns
SubscriberKey
JobID
BatchID
SendDate
Open Date (if necessary)
Click Date (if necessary)
I really appreciate your help.
I am so sorry to give half details. We sent link to users by email. Those information store in sent table. Now if user open the email then it's goes to open table. If user click the button on link , that information goes to click table. Subscriber table has subcriber information. Now i will need the three queries.
1. Who did not open and did not click
2. Who open the link but did not click on button
3. Who open the link and clcik the button.
I will need some basic columns
SubscriberKey
JobID
BatchID
SendDate
Open Date (if necessary)
Click Date (if necessary)
I really appreciate your help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you so much.
There is also a sample query, see "Query: Find Subscribers with No Opens or Clicks" and this shows how 3 of the relevant tables are joined together:
Open in new window
What do you expect your query to provide? for example: what are the columns you expect to see?
nb: Each of the tables appear to have a number of "foreign keys" which will be used in joins (refer to the sample above)
Open in new window