Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calendar DATE vs database DATETIME

Status
Not open for further replies.

jonhoward

IS-IT--Management
Apr 9, 2003
41
EU
MSTR 7.2.3, Oracle

I have an attribute (A) with a DATETIME format in the warehouse (so format is dd/mm/yyyy hh:mm:ss)

If I build a prompt in Web I can use the calendar, but the SQL generated will have a clause along the lines of...

...where A = 31/01/1999

But the data in the warehouse will be 31/01/1999 12:34:56, therefore I get no join. In some cases though, the data may be 31/01/1999 00:00:00 in which case the join will be made

Assuming I can't make any changes to the warehouse, what is the most effective solution to this problem?
 
Thanks for the pointers. I'm now using the following

ApplySimple("trunc(#0)", DATE_ATTRIBUTE)
 
I think you can also change the setting in the VLDB properties by defining how the Oracle date should look. You need to use an alter session statement. There's a technote on Microstrategy's support site.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top