Last active
April 7, 2020 05:59
-
-
Save naveenvm93/9dbff8428d8eb0d09a0ffce29da1fe88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Select T.[First Name], T.[Last Name], T.Email, dateadd(second,Tz.Time_Difference_in_Seconds_for_SFMC, DATEADD(YEAR,-(DATEDIFF(YEAR, getdate(), DateofBirth)), T.DateofBirth)) as [Local Time], T.DateofBirth, T.Country_code | |
from [Test Time Record] as T | |
JOIN [Time Zone] as Tz | |
on T.Country_code = Tz.Country_code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment