Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
sculptorlv
Creator III
Creator III

LOAD certain values in a new column

Hi,

please help with one question!

I have the following code:

LOAD

IF(Date > Today(), 'new', 'old')      AS Date_status,

Value;

Select

a               AS Date,

b               AS Value

From Table YYY;

I want  in LOAD section add one column C with only one value "Dollars".

But I don't know the right syntax ...

Something like:

   

LOAD

IF(Date > Today(), 'new', 'old')      AS Date_status,

Value

'Dollars'     AS MoneyName;

 

Please help with the correct syntax.

1 Solution

Accepted Solutions
sunny_talwar

Looks good, except a comma is missing:

LOAD IF(Date > Today(), 'new', 'old') as Date_status,

          Value,

          'Dollars' as MoneyName;

SQL SELECT....

View solution in original post

3 Replies
Chanty4u
MVP
MVP

did u try removing the    '   single quote?

sunny_talwar

Looks good, except a comma is missing:

LOAD IF(Date > Today(), 'new', 'old') as Date_status,

          Value,

          'Dollars' as MoneyName;

SQL SELECT....

Anonymous
Not applicable

Just add Comma(,) after Value field in your script