Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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.