Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Adding attributes to loaded files in-script

Hello,

I was wondering if it was possible to insert extra attributes into records when they are being loaded. The equivalent in a SQL pull would be like adding:

"TEXT" as record_type

to a select clause.

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hi,

Use the LOAD sentence to do that:

Customer:

LOAD CustID,

     CustName,

     'Customer' AS Type; // this is not in the SQL server

SQL SELECT CustID, CustName

FROM dbo.Customers;

Is that what you mean?

Miguel

View solution in original post

2 Replies
Miguel_Angel_Baeyens

Hi,

Use the LOAD sentence to do that:

Customer:

LOAD CustID,

     CustName,

     'Customer' AS Type; // this is not in the SQL server

SQL SELECT CustID, CustName

FROM dbo.Customers;

Is that what you mean?

Miguel

Not applicable
Author

Single quotes! Of course. Thank you Miguel.