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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Krish2459_58
Creator II
Creator II

Multiple database joins

Hi,

I need to write a sql join on multiple databases like below.

Property_Notes:
SQL SELECT 
F_Pm_Property.PMP_SEQ,
F_Notes.Details,
F_Notes.Heading
FROM F_Pm_Property
LEFT OUTER JOIN F_NotesProperty ON F_Pm_Property.PMP_SEQ = F_NotesProperty.PMP_SEQ
LEFT OUTER JOIN F_Notes ON F_NotesProperty.F_Notes_SEQ = F_Notes.F_Notes_SEQ;
 
Now for  F_Pm_Property the source was changed to  new database "public"."property".
Please help me how to integrate the new database in the above existing above sql join logic.
 
Thanks..
Labels (2)
1 Solution

Accepted Solutions
MayilVahanan
MVP
MVP

HI

Try to load into 2 set 

Property_Notes:
SQL SELECT Distinct
PMP_SEQ as PMP_SEQ
FROM "public"."property".F_Pm_Property;
 
ODBC Connectivity;
Left Join(Property_Notes)
SQL SELECT Distinct
F_NotesProperty.PMP_SEQ as PMP_SEQ,
F_Notes.Details,
F_Notes.Heading
FROM F_NotesProperty 
LEFT OUTER JOIN F_Notes ON F_NotesProperty.F_Notes_SEQ = F_Notes.F_Notes_SEQ;

Hope it helps
Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

1 Reply
MayilVahanan
MVP
MVP

HI

Try to load into 2 set 

Property_Notes:
SQL SELECT Distinct
PMP_SEQ as PMP_SEQ
FROM "public"."property".F_Pm_Property;
 
ODBC Connectivity;
Left Join(Property_Notes)
SQL SELECT Distinct
F_NotesProperty.PMP_SEQ as PMP_SEQ,
F_Notes.Details,
F_Notes.Heading
FROM F_NotesProperty 
LEFT OUTER JOIN F_Notes ON F_NotesProperty.F_Notes_SEQ = F_Notes.F_Notes_SEQ;

Hope it helps
Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.