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

1 Answer 1


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

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

from _Open
  • 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, 2019 at 14:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .