0

I have creating TestDE Data extension using these attributes like SubscriberKey, AccountID, EventDate, Date, Month, Year attributes. And Created with same attributes using Target Data extension. Now my requirement is how to write a SQL query on '_Open' for Split date, Month and Year. Can anybody help on this.

See below image:

enter image description here

3

You can use Datepart() function. In your case it would be

select 
Datepart(year, EventDate) as Year, 
Datepart(month, EventDate) as Month ... 

from _Open
| improve this answer | |
  • Thanks for giving fast reply!! , And also Here month showing number format,I need to show month in text format like January, February like that – srija Jan 23 '19 at 14:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.