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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

strange OLEDB select result

Hi,

I isolated a bug in my application :

I load data from a MS sql 2008 DB

OLEDB CONNECT TO [...]

select AFF_AFFAIRE,AFF_AFFAIRE1,AFF_AFFAIRE3 from affaire;

now , for a selection that should give me one row, qlikview gives me two :

Capture d’écran 2014-07-31 à 11.14.32.png

If I try the same thing in SQL management studio :

select AFF_AFFAIRE from AFFAIRE where AFF_AFFAIRE1='ITC' and AFF_AFFAIRE3='1312D5'

I get :

AFF_AFFAIRE

AITC592541312D500

which is the correct behavior.

What am i missing ?

Jo.

21 Replies
mrybalko
Creator II
Creator II

You can use code:

affaire: 

LOAD 

    *,

    text(AFF_AFFAIRE3) as AFF_AFFAIRE_; 

select  ....


DROP FIELD AFF_AFFAIRE3;

RENAME FIELD AFF_AFFAIRE_ to AFF_AFFAIRE3;

Not applicable
Author

I like your solution,

it's way better than my 2 requests per table.

Thank you.