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

SQL Scripting

Hello Community members,

I have doubt regarding SQL scripting, can we develop total project using the sql commands and scripting in qlikview. If any one had developed the project, please post a sample sheet for me

5 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Qlikview itself doesn't understand sql. Qlikview simply passes any sql statement (anything starting with SQL or SELECT) to the dbms for execution and treats the returned results as a table. So you can put any sql statement in your script in your Qlikview document. As long as it's a valid sql statement for your dbms it should return results. Two examples:

// simply load everything from mytable into a table called Table1

Table1:

select * from mytable;

//first load a,b and c from myothertable, then load a and b+c as d into Table2

//this is called a preceding load and can be used to process the data (with qlikview functions) from the sql statement

Table2:

load a, b+c as d;

select a,b,c from myothertable;


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks for your response Gysber,,

So, Internally, their will be sql execution engine for the execution of sql queries, if so can we write sql functions like date functions,upper etc ?.

Regards

ramesh

shree909
Partner - Specialist II
Partner - Specialist II

Yes u can write the upper  and date functions same way as u do in sql..

MayilVahanan

HI

Yes. You can use sql queries in qv n exceute. For better performance, Load the data in qvd , to avoid connection each time to sql engine

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Thanks all of you for your great response

Regards,

Ramesh