Age in Flex Header

Hi All,

Me again with a conundrum regarding custom Flex Header Elements.

I've been trying to get a calculation of Age in years and months based on birthdate_1 attribute.  I finally got my SQL to work in SSMS, but devastatingly when I put it into Tessitura the header is still giving me an error.

Anyone have this working in their database?

The forum is not letting me post my SQL code in this post.  I'll try to follow up with it as a comment.

Thanks,

Kanani

Parents Reply
  • Hi Kevin,

    Thanks for your response.  After some research, I learned that you can't declare variables in views, but functions are the way to go.  I've never created either, but I was able to stumble through creating a function with some help from SQL for dummies and Google. However, it's only returning age in years, whereas the query I wrote before was giving me what I want which is "x years x months".

    Are you familiar with functions, or know what might be going wrong for me?  I appreciate your help.

Children