on 01-07-2015 3:56 PM
Hi All,
I'm using BODI 3.1 and Oracle 11g as my backend, how do I generate date from start of month to end of month in designer as specified below
DATE
'2014/10/01 12:00:00'
---
---
'2014/10/31 12:00:00'
Any help would be greatly appreciated.
Thanks.
I think you can use date generation transform. Not sure its part of 3.1 check this link.
Date Generation Transform - Enterprise Information Management - SCN Wiki
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can keep your target column's data type to date time ,then code something like this.
to_char( Date_Generation.DI_GENERATED_DATE,'YYYY/MM/DD 12:00:00')
but your result would look something like this : 2014/10/01 12:00:00:000000000 (with the milliseconds)
If you do not want the milliseconds then you may need to keep your target column's data type as varchar and play around with the string functions to get rid of the milliseconds
If you want to generate rows with subsequent dates , then you can achieve that with previous_row_value() function.Set your first row date as 2014/10/01 and for the next row use previous_row_value() and increment the date by 1 and so on.Have a look at this.
Access to Previous Row Values - Enterprise Information Management - SCN Wiki
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Are you trying to load dates for a full month into a table with 12:00:00 as the time pat of the date?
Can you please give a bit more detail on what you are going to load? Just dates??? or dates with other columns?? .....
kind regards ¨
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.