We help IT Professionals succeed at work.
Get Started

Show records where 3 fields are not equal

Jeremyw
Jeremyw asked
on
304 Views
Last Modified: 2008-02-01
SELECT APCDTA45_MSPMP100.PRDNO, [APCDTA45_MSPMP100]![OPBAL]-[APCDTA45_MSPMP100]![ISSUE]+[APCDTA45_MSPMP100]![RECPT]+[APCDTA45_MSPMP100]![ADJST] AS MSPMPONHAND, tbl45BalanceINWIPOnHand.INWIPONHAND, tbl45BalanceMFLBPOnHand.MFLBPONHAND
FROM (APCDTA45_MSPMP100 LEFT JOIN tbl45BalanceINWIPOnHand ON APCDTA45_MSPMP100.PRDNO = tbl45BalanceINWIPOnHand.PRDNO) LEFT JOIN tbl45BalanceMFLBPOnHand ON APCDTA45_MSPMP100.PRDNO = tbl45BalanceMFLBPOnHand.PRDNO;


How would I only show records where the values in MSPMPONHAND, INWIPONHAND & MFLBPONHAND do not match.  I know I can do INWIPONHAND <> MSPMPONHAND, but what do I need to do to include the MFLBPONHAND.  

Basically if all 3 fields aren't exact, I need to see that product number and what the values are.



Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 8 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE