Link to home
Start Free TrialLog in
Avatar of Richard Korts
Richard KortsFlag for United States of America

asked on

SQL Statement

I'd like to do a sql (MySQL) query where I can compare one numeric field with the sum of 5 other numeric fields.

Specifically, like:

SELECT * from table where table.a + table.b + table.c + table.d + table.e <> table.f

Can this be done & what is the right syntax?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Randy Johnson
Randy Johnson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial