on 10-15-2015 5:28 PM
Im using BO Information design tool, then I need to create a dimension of age based on the employee's date of birth. Any idea how?
thanks
For create universe somebody knows if is it importan type database?, conection is ECC, its not other source like mysql, access, etc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, it depends on the type of database you use. Normally if you design against a relational database like oracle or MSSQL server you can do what Amit already suggested. I think there is a limitation if you work with SAP ECC, even if its underlying database is for example Oracle you might not have all the SQL functions which are provided by Oracle. If your Data Foundation is multisource enabled you should be able to use much more functions in order to create the objects in your business layer. Because then the functions are provided by the data federation layer. In this case you would use timestampDiff function. The first parameter is 4, which means that the difference is given in days and that is divided by 365. I don't have a list for all the units but of course there is one for years, which would be more precise because of leap years.
Hi,
You can do in multiple ways.
subtract the date of birth from current date based on the years.You will get the age in years.
year(curDate())-year(@catalog('Dummy')."PUBLIC"."Table"."DOB")
or find out the number of days difference between two dates and divide by 365.
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.