Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Join multiple tables from database

Hi,

Im making an ODBC connection to a database. Where I want to join multiple tables from that database. I know the SQL as followed:

from contnotes n

inner join accounts sub on (n.accno=sub.accno)

inner join accounts main on (sub.mainaccno=main.accno)

inner join instruments i on (n.insid=i.insid)

inner join instrumentclearingmarketplaces icm on (n.insid=icm.insid and icm.isdefaultmarket=1)

inner join marketplaces m on (icm.cmpcode=m.cmpcode)

inner join instrumentnames iname on (n.insid=iname.insid and iname.lngid=29)

So I want to join these set of 6 tables as above. how is that practically made?

Regards

2 Replies
Gysbert_Wassenaar

Just use the existing sql statement to retrieve the data and have the database server do all the joining:

MyTable:

SQL SELECT ...etc...;


talk is cheap, supply exceeds demand
santiago_respane
Specialist
Specialist

Hi Niklas,

you can join them directly in SQL and load it as one table in qlikview or you can bring all tables separately and joind them in qlikview.

The second option makes it easier when it comes to new requirements or changes in the model.

Hope this helps.

Kind regards,