chunkII123
IS-IT--Management
Heres what I need to do, I'm trying to find the sum of two different columns. Here is the two differnt columns
and
What I want MySQL to do is sum both columns individually, then take the 'amount' column from 'paymentsscheduled' and subtract the 'amount' column from 'paymentsreceived'.
Is this possible, and how might I do this?
Thanks ahead of time.
Beware of hackers bearing executables. Happy Hunting. 'irc.2600.net'
Code:
SELECT SUM(amount)
FROM paymentsscheduled
WHERE membernumber = '15980';
Code:
SELECT SUM(amount)
FROM paymentsreceived
WHERE membernumber = '15980';
What I want MySQL to do is sum both columns individually, then take the 'amount' column from 'paymentsscheduled' and subtract the 'amount' column from 'paymentsreceived'.
Is this possible, and how might I do this?
Thanks ahead of time.
Beware of hackers bearing executables. Happy Hunting. 'irc.2600.net'