Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

FILTER VALUES THAT ARE NOT PRESENT

$
0
0

Hello!

I have asked a similar question months ago (I believe) and I have no doubt the solution is a simple one. Basically, I am trying to compare two columns and only return the values that DO NOT exist from one column.

For example:

- I have a pricing list that has 24 unique prices called PRICING_ASSIGNMENTS or PA. I then have items that have been priced in a column called PRODUCTION_ITEMS or PI. I want to see the items that have prices that are not in the PRICING_ASSIGNMENTS table. Simply, the outliers.

PRICING_ASSIGNMENTSPRODUCTION_ITEMS

IDPRICE IDPRICE

11.99 13.99

22.99 22.99

33.99 32.99

44.99 45.49

55.99 51.99

61.49

So.. I want to return only the 5.49 and 1.49 values because they do not exist on the PA table.

Can anyone give me some guidance on how I can accomplish this?

Thank you in advance.

Patrick



Patrick Regis


Viewing all articles
Browse latest Browse all 23857

Trending Articles