Skip to main content
Solved

Reader where clause


Forum|alt.badge.img+1

The where clause woks perfectly in a sql Script but when I use it for a Reader if fails to filter the dataset.

Am I missing some syntax?

Has anyone got examples of where clause syntax for a Reader?

Best answer by erik_jan

I believe that if you use the SELECT, the WHERE is ignored.

But you can add the where clause in the SELECT parameter and leave the WHERE empty to get the right result.

Or you can leave the SELECT empty and then the WHERE will be added to the table reader as a filter.

View original
Did this help you find an answer to your question?

4 replies

david_r
Celebrity
  • April 25, 2019

At first sight it looks OK. What do you mean by "fails to filter"? Do you get everything or nothing at all?


erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • Best Answer
  • April 25, 2019

I believe that if you use the SELECT, the WHERE is ignored.

But you can add the where clause in the SELECT parameter and leave the WHERE empty to get the right result.

Or you can leave the SELECT empty and then the WHERE will be added to the table reader as a filter.


Forum|alt.badge.img+1

I get everything in the database


Forum|alt.badge.img+1

Ahh erik_jan thats it !

Once I removed the select the where clause filtered the data.

I will try the where in the Select parameter as well

Thanks


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings