Last updated on JANUARY 16, 2016
Applies to:Oracle Fusion Global Human Resources Cloud Service - Version 18.104.22.168.0 and later
Oracle Fusion Application Toolkit - Version 22.214.171.124.0 and later
Oracle Fusion Application Toolkit Cloud Service - Version 126.96.36.199.0 and later
Information in this document applies to any platform.
OBIEE TIMESTAMPDIFF gives wrong results
Hi, customer wants to calculate average ages of people in the company. To calculate the age of a person I have to compare two dates, sysdate and birth date and I'm doing it by using TIMESTAMPDIFF-function:
TIMESTAMPDIFF(SQL_TSI_YEAR, "Person"."Person Date Of Birth", CURRENT_DATE)
Unfortunately that rounds the result. For example we have now a person with birthday 17.12.1952 so he's still 62 but OBI calculation says that he's already 63. That's wrong and if I use that to calculate average age for the whole personnel, I'll get wrong results.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms