Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Not applicable

How to exclude values from table in load statement

Hello,

I am trying to load a table to QV but exclude rows where column A = 'X'.  What is the syntax for this?  I thought I could just add a WHERE statement but can't find the correct way to do this.  Here is my code currently:

 

SQL

SELECT *
FROM CIA.dbo."CU_Prem_Mbrship";

Let me know if that is not clear.  Thanks.

Craig

1 Solution

Accepted Solutions
MVP
MVP

Re: How to exclude values from table in load statement

Hi,

Try like this

where A <> 'X'

Regards,

Jagan.

8 Replies

Re: How to exclude values from table in load statement

HI

Table1:

Load *;

SQL

SELECT *
FROM CIA.dbo."CU_Prem_Mbrship" where A = 'X';

Then store inqvd;


Store Table1 into TableName.qvd(qvd);

Then use qvd.. Because inorder to avoid the connect the database for every time. For qvd , its easy to load when compare to sql connection(data retrieval).

MVP
MVP

Re: How to exclude values from table in load statement

Hi,

You can straight away use where condition in SQL query.  Please check below query

TableName:

SQL SELECT *
FROM CIA.dbo."CU_Prem_Mbrship"

where A = 'X';

Hope this helps you.

Regards,

Jagan.



Not applicable

Re: How to exclude values from table in load statement

How do you do A NOT = 'X'?

Thanks

haymarketpaul
Contributor III

Re: How to exclude values from table in load statement

Where A <> 'X'

MVP
MVP

Re: How to exclude values from table in load statement

Hi,

Try like this

where A <> 'X'

Regards,

Jagan.

Re: How to exclude values from table in load statement

Hi

Try like this

SQL

SELECT *
FROM CIA.dbo."CU_Prem_Mbrship" where A <> 'X';

Hope it helps

Not applicable

Re: How to exclude values from table in load statement

Hi Mayil,

I have the where statement figured out but still trying to understand why you advocate saving my tables as qvd.  Will this improve processing time within the application (pivot table calculations when filtering)?  Will this save space?

Thanks

Re: How to exclude values from table in load statement

HI

By using connection string, every time data fetch from database(sql). so its take time to load the data when compare to qvd. So only i mentioned like that..

Hope attached file helps you to understand about qvd.

Community Browser