Ok this is a little bit of a strange request. We are trying to get a formatted "age" statement to come out in a report in PeopleSoft, it provides a "TSQL" based builder which is fairly unhelpful. We cannot use stored functions and we cannot edit the entire SQL statement as one thing. All we can do is say field by field what the formula is, then the tool will join it all the elements together to produce the query.
So, given that restriction how can we get the difference between two dates to be formatted as a nicely human readable sentence eg. "14 years, 3 months and 10 days"
Any ideas would be greatly appreciated.