Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
Read about Qlik’s Response to COVID-19 Read the Letter, Join the Group.
Highlighted
Contributor

Re: Problem in database script

Hi,

I have database IBM DB2 ,so i have small doubt whether i have to write SQL to fetch data from database or i have to use IBM BD2.

what script i have to use in QV script editor (IBM DB2 or SQL)

3 Replies
Esteemed Contributor III

Re: Problem in database script

Once you connect to your IBM DB2 database.

Just use a preceding load with Select statement.

LOAD *;

SELECT Col1, Col2, Co3

FROM table1

INNER JOIN

          table2 ON .....

Where ...... ;

Highlighted
MVP
MVP

Re: Problem in database script

you have to write SQL to fetch data (SQL for IBM DB2)

SQL

SELECT ......................;

if you want to add some transformation you can use a preceding load

Preceding Load

Highlighted

Re: Problem in database script

IBM DB2 is the über-RDBMS, so SQL will be its native query language. Actually IBM invented SQL as a database query language so I think you will be safe when using SQL to extract information from DB2.