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

Join one ID in a table with different IDs

Hello,

I have the following problem:

In a table with web data, containing different type of IDs. Each of the rows has only one of these IDs. Example:

WebData:

IDType1IDType2IDType3Visits
123456--1
-ABCDEF-3
--U7634JULM2
-FEDGDE-1
4564564--3

I also have a Users table which contain a master UserID + the other IDs for that particular user. Example

Users (the IDs in red match the IDs from the WebData table):

MasterIDIDType1IDType2IDType3
1A123456QSDFQSSDFU97994D
2A345345ABCDEFHJG654HGH
3A678678GFHFDGU7634JULM
4A121321FEDGDEVBNVN4343
5A4564564CVXCVXCSDF4645DF

What I want to achieve is add the MasterID in the WebData. It would be easy (for me at least) to join it if there was only 1 webID which I would need to match with the MasterID, but I'm struggeling to get this done.

So basically, I would need to end up with this:

WebData:

IDType1IDType2IDType3VisitsMasterID
123456--11A
-ABCDEF-32A
--U7634JULM23A
-FEDGDE-14A
4564564--35A

What would be the best approach to achieve this?

Kind regards,

Christophe

1 Solution

Accepted Solutions
Not applicable
Author

Hello,

I did a solution with three left joins one for each kind of ID and got the result needed.

This is for recognize the user for each type of social network he use to login on your app?

View solution in original post

2 Replies
Not applicable
Author

Hello,

I did a solution with three left joins one for each kind of ID and got the result needed.

This is for recognize the user for each type of social network he use to login on your app?

Anonymous
Not applicable
Author

Great stuff Jean, thanks !!! Did the trick for me.. If I knew it would be that simple.. 🙂