Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Create a join in RPD between a DATE and DATETIME columns

ManishHathiAug 10 2015 — edited Aug 11 2015

Hello,

In my RPD, I have a fact table with a DATE column which also contains a time component. The physical layer shows this as a DATETIME column which I changed to DATE since I am only interested in the date part.

When I join this to anĀ  alias of my Date dimension, the physical sql generated is similar to:

DIM_DATE.DATE = FACT_A.FINISH_DATE

What I actually want is :

DIM_DATE.DATE = TRUNC(FACT_A.FINISH_DATE)


How can I achieve this at the RPD level? Yes, I can add a new column to the DW table with truncated value, but I want to know why even if I selected DATE as the datatype in the RPD, the join created does not do a trunc.


Thanks,


Manish

This post has been answered by rmoff on Aug 11 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details