Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
nareshthavidishetty
Creator III
Creator III

sql condition to qlik condition script

Hi,

We have used the below script during the extraction of data from database.

And instead of using this condition in raw extract we planned to implement the logic during qvd exaction.

logic/Query during the data extraction :

Select FROM $(vS_DatabasePrefix)D_Status

union

SELECT

-1

,'NLL'

,'NLL'

FROM $(vS_DatabasePrefix)D__Status

I need to implement the same logic while we extract the data from QVD.

Thanks..

;

2 Replies
olivierrobin
Specialist III
Specialist III

hello

you can use concatenate

1 - load your qvd from $(vS_DatabasePrefix)D_Status

2 - add

concatenate(yourtable)

load * inline [

-1

,'NLL'

,'NLL'

];

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Are you sure that the original SQL statement does work? The first SELECT has no column specification.