Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
pavansonu99
Creator
Creator

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
vishsaggi
Champion III
Champion III

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 ...... ;

maxgro
MVP
MVP

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

Peter_Cammaert
Partner - Champion III
Partner - Champion III

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.