Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
213 views
in Technique[技术] by (71.8m points)

Salesforce Marketing Cloud SQL

Can we identify the weekday or which day in SFMC tool through SQL, The scenario is, i need all the records who is having meeting date on Wednesday and Thursday by last Friday it self.

Is this query works?

EX:

WHERE

(DATENAME(dw, T1.[Meeting Start Date]) ='Wednesday' OR

DATENAME(dw, T1.[Meeting Start Date]) ='Thursday') AND

(CAST(T1.[Meeting Start Date] AS DATE) = CAST(DATEADD(Day, 4, GETDATE()) AS DATE) OR

CAST(T1.[Meeting Start Date] AS DATE) = CAST(DATEADD(Day, 5, GETDATE()) AS DATE) OR

CAST(T1.[Meeting Start Date] AS DATE) = CAST(DATEADD(Day, 6, GETDATE()) AS DATE))

question from:https://stackoverflow.com/questions/66051231/salesforce-marketing-cloud-sql

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...