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

Autonmuber in load statement

Hi,

I am trying to add function in SQL Load statement, but it is not recognizing here.

Please help me in this.

Regards,

Kumar

1 Solution

Accepted Solutions
MayilVahanan

Hi

Try like this

Load * where not exists(Field1, Field2);

Sql select statement;

Where not Exists and Exits

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

10 Replies
tresesco
MVP
MVP

Autonumber() is qv function that can't be used as SQL command. Try like:

Load

          *,

          Autonumber(Field) as Newfield;

SQL Select Field, ....;

Anonymous
Not applicable
Author

Hi

Thanks for giving suggestion. Please see the screen shot after changing this one.

I am not getting where it is going wrong.

Regards,

Kumar

MayilVahanan

Hi

Try like this

Load *,

Autonumber(lead_id&time_Month_Key) as Num ;

Sql select statement;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
maxgro
MVP
MVP

load

    *,

   autonumber(.........) as num;

SELECT

    ......

    ;

Anonymous
Not applicable
Author

Thanks a lot Mayil .

I have one more doubt.

can't we write where not exists at the end of SQL statement.

Regards,

Kumar

tresesco
MVP
MVP

Again exists() is a qv function; can't be used in SQL.

jagan
Luminary Alumni
Luminary Alumni

Hi,

You can write any SQL statement in Qlikview, before using in Qlikview first verify the query in database.

Regards,

jagan.

Anonymous
Not applicable
Author

Hi,

Can you tell me how to write this where not exists in this statement.

Regards,

Kumar

MayilVahanan

Hi

Try like this

Load * where not exists(Field1, Field2);

Sql select statement;

Where not Exists and Exits

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.