Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Join: combine 2 Tables If

Hello,

i have 2 tables, offers and advertising. I want to combine 2 tables and add new field prom_id to the Offers table.
The condition for add the field prom_id is OfferDate > prom_date

My problem:
If the customer has received a promotion, then please enter the promotional code to the order if the order date is greater than Advertising Date.
I want to know which Advertising had the best response

Offers

cust_idOfferIdOfferDate
1o12010-07-01
1o22011-09-11
2o12009-06-02


Advertising

cust_idprom_idprom_date
1a12010-06-20
1a22010-07-02
1a32011-08-01
1a42011-08-25
2a112010-09-11
2a122011-01-08


I don't know how can i join the tables.
Do you know any other solution?

Thanks!!!

Sorry for my English

1 Solution

Accepted Solutions
deepakk
Partner - Specialist III
Partner - Specialist III

HI QlikJam,

I hope the attach application is what you are looking at helps.. Cheers.. Drinks

View solution in original post

3 Replies
deepakk
Partner - Specialist III
Partner - Specialist III

HI QlikJam,

I hope the attach application is what you are looking at helps.. Cheers.. Drinks

Not applicable
Author

Hi, thank you.

I can work with the results.

Can you please explain me your script.

deepakk
Partner - Specialist III
Partner - Specialist III

hi,

I am joining the two tables based on the customer id.(in Qlikview if the field names are same then in automatically joins the field).

Since both the tables gets combined into one, it becomes easy for me to check the offerdate is greated than promo date.