Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to create inline table with enumerated values?

I want to create an inline table. It has one column 'date' which has all the days last year. How to do it?

e.g. the inline table looks like this

date

2014.01.01

2014.01.02

...

...

2014.12.31

1 Solution

Accepted Solutions
anbu1984
Master III
Master III

Table:

Load Date(Date#('01/01/2014','MM/DD/YYYY')+ RowNo()) As Dt AutoGenerate(365);

View solution in original post

4 Replies
Miguel_Angel_Baeyens

Hi,

You can use either the Date() function in the INLINE statement to make it look like a date, or use the "delimiter" keyword:

LOAD * INLINE [

...

] (delimiter is ' '); // for a blank space

Miguel

Anonymous
Not applicable
Author

Hi,

Try:

Test:

Load * inline

[

date

2014.01.01

2014.01.02

...

...

2014.12.31

];

Regards

Neetha

anbu1984
Master III
Master III

Table:

Load Date(Date#('01/01/2014','MM/DD/YYYY')+ RowNo()) As Dt AutoGenerate(365);

Not applicable
Author

thank you! this one works well

Table:

Load Date(Date#('12/31/2013','MM/DD/YYYY')+ RowNo()) As Dt AutoGenerate(365);