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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Where condition

Hi QV community,

While working on QVD Generators, I need to get the data from DB table based on "Where" condition.

I have two options

1. Load *;

SQL Select * from DBTable where Month in '0315';

2. Load * where Month=0315;

SQL Select * from DBTable

Which opton works the Best?

Labels (1)
1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

4 Replies
MK_QSL
MVP
MVP

1st

Not applicable
Author

Like Manish said, option 1 is better.

The main reason is because the number of records from the select statement is shortened, pulling only the necessary records. If it is a big table, then it makes even more sense.

To see how the preceding load logic works please read Simplify with Preceding Load | Qlikview Cookbook.

Hope this helps!

Kind regards,

Nuno

mukesh24
Partner - Creator III
Partner - Creator III

1st Option work best

maxgro
MVP
MVP

first one but I think you have to add ( )

SQL Select * from DBTable where Month in ('0315');