Hey everyone,
I'm new here and I have a question.
I have 2 tables in excel
1. sales table
2. promotion table
in the sales table I have : Serial number , date , price , discount
in the promotion table I have: Serial number , start date, end date, discount
now I want to check if the discount in the sales table is like in promotion table!
remember you can find the same serial number in the promotion/sales date but in different dates.
I have to check if the
date(sales table) is between start date(promotion table) and end date(promotion table)
AND
serial number = serial number
if yes I want to put the discount(promotion table) in the sales table
I hope you understand me!
I try to do it in excel but it's stuck with more 750k lines
do you have any sql or via solution?
I'm new here and I have a question.
I have 2 tables in excel
1. sales table
2. promotion table
in the sales table I have : Serial number , date , price , discount
in the promotion table I have: Serial number , start date, end date, discount
now I want to check if the discount in the sales table is like in promotion table!
remember you can find the same serial number in the promotion/sales date but in different dates.
I have to check if the
date(sales table) is between start date(promotion table) and end date(promotion table)
AND
serial number = serial number
if yes I want to put the discount(promotion table) in the sales table
I hope you understand me!
I try to do it in excel but it's stuck with more 750k lines
do you have any sql or via solution?