Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9831

Query matching two columns to three columns

$
0
0

I have 5 Columns divided in two groups.

The first column of the first contains the name of a fruit (Pear, apple or peach) and the second its price (1 -> 5). In the other group, I also have the name of fruits (Pear, apple or peach) on the first column, I also have a price on the second column (3 -> 5) and on the third column I have the price minus (2 -> 4).

I would like to match the fruit of the first column and its price and know if it is present in the second group.

If I have an apple costing 3 in the first group, I would like to know if there is at least one case where there is an apple in the first column and the price in the second column equals 3 or if the first column = apple and the third equals 3.

I don't find any solution. My idea would be to first check "if" the fruit found in the first group is also found in the fruit column in the second group and then to check if the price is found next to it on the second or the third column in the second group.


Viewing all articles
Browse latest Browse all 9831

Latest Images

Trending Articles



Latest Images