Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

Not applicable

How to join two single tables

Hello

I have just two single tables i like to join. How is the syntax?

SQL SELECT

actno, nm, supno

FROM F1100.dbo.Actor;



SQL SELECT

R2, R10, VoNo, EntNo, Sup, AcNo, VoDt, AcPr, Qty, AcAm, Txt, Txt2

FROM F1100.dbo.AcTr;

I like to join supno and sup....

Please help

1 Solution

Accepted Solutions
Not applicable

Re: How to join two single tables

Thanks !! I give it a try tomorrow

6 Replies
Not applicable

Re: How to join two single tables

You will need to rename the two fields to have the same name.  Then QV will join them automatically. 

Not applicable

Re: How to join two single tables

Hello Heather

I can not rename this fields in SQL database. This is in use from the main acounting system. Is it some way to rename in QV?

Not applicable

Re: How to join two single tables

Sorry, I should have been more clear.  Just give them an alias in the query, not rename in the database.

Gysbert_Wassenaar
Not applicable

Re: How to join two single tables

Give the field Sup the alias supno. That way Qlikview can associate the two tables:

Table1:

SQL SELECT

actno, nm, supno

FROM F1100.dbo.Actor;

Table2:

SQL SELECT

R2, R10, VoNo, EntNo, Sup as supno,

AcNo, VoDt, AcPr, Qty, AcAm, Txt, Txt2

FROM F1100.dbo.AcTr;


talk is cheap, supply exceeds demand
Not applicable

Re: How to join two single tables

Thanks !! I give it a try tomorrow

Not applicable

Re: How to join two single tables

I have tested, and i works perfekt!!

Thanks to all