Forum Discussion

labuser1235's avatar
labuser1235
Helper IV
6 years ago
Solved

Banding, Bucketing or Segmentation Problem

Hi All,

 

I have two tables where I want to get true or false as shown as output in table2. Based on the price range after three column matches, result should be thrown. I have tried the below method as shown in the link. However I had no luck because it shows nothing not even the error. 

 

Thanks in advance, please help.

 

Below are the tables:

 

Table1

Fruit NameTypeStart PriceEnd Price
OrangeType-115
OrangeType-2610
OrangeType-31115
AppleType-116
AppleType-2710
AppleType-31114
GrapesType-114
GrapesType-259
GrapesType-31015

 

Table2

Fruit NameTypePrice SoldPrice Range Check 
OrangeType-26TRUE
Apple Type-37FALSE
GrapesType-14TRUE
OrangeType-13TRUE
OrangeType-35FALSE
Apple Type-18FALSE
GrapesType-22FALSE
GrapesType-314TRUE
OrangesType-16FALSE

 

 

2 Replies