Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
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
Author

Thanks !! I give it a try tomorrow

View solution in original post

6 Replies
Not applicable
Author

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

Not applicable
Author

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
Author

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

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

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
Author

Thanks !! I give it a try tomorrow

Not applicable
Author

I have tested, and i works perfekt!!

Thanks to all