May 5, 2003 #1 mstr1 Programmer May 5, 2003 12 IN Hi, Can u please give some solution to the following problem? How to calculate age (today's date - Birthdate) as an attribute using Birthdate in Microstrategy? where the db is Teradata. Thanks in advance
Hi, Can u please give some solution to the following problem? How to calculate age (today's date - Birthdate) as an attribute using Birthdate in Microstrategy? where the db is Teradata. Thanks in advance
May 5, 2003 #2 nlim IS-IT--Management Mar 29, 2001 439 US simplest calculation expression is Year(CurrentDate()) - year(Birthdate) The Int Server will resolve it to the appropriate teradata syntax for you. However, it does not take into account exact dates. Another choice is to use the following expression int((birthdate - currentdate())/365) good luck. Upvote 0 Downvote
simplest calculation expression is Year(CurrentDate()) - year(Birthdate) The Int Server will resolve it to the appropriate teradata syntax for you. However, it does not take into account exact dates. Another choice is to use the following expression int((birthdate - currentdate())/365) good luck.
May 5, 2003 Thread starter #3 mstr1 Programmer May 5, 2003 12 IN how to get current date in a report/metric? Upvote 0 Downvote
May 6, 2003 #4 nlim IS-IT--Management Mar 29, 2001 439 US currentDate is a function that ships with MicroStrategy. You can find it under schema objects\functions\datetime Upvote 0 Downvote
currentDate is a function that ships with MicroStrategy. You can find it under schema objects\functions\datetime