Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Krish2459_58
Creator
Creator

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

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

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.